WORKER_APP_LOCATION_PROVIDERS

Experimental Const Variable Export export WORKER_APP_LOCATION_PROVIDERS Those providers should be added when the router is used in a worker context in addition to the ROUTER_PROVIDERS and after them. exported from @angular/platform-webworker/index defined in @angular/platform-webworker/src/web_workers/worker/location_providers.ts

WorkerAppModule

Experimental Class Class Overview class WorkerAppModule { } Class Description The ng module for the worker app side. Annotations @NgModule({ providers: [ BROWSER_SANITIZATION_PROVIDERS, Serializer, {provide: ClientMessageBrokerFactory, useClass: ClientMessageBrokerFactory_}, {provide: ServiceMessageBrokerFactory, useClass: ServiceMessageBrokerFactory_}, WebWorkerRootRenderer, {provide: RootRenderer, useExisting: WebWorkerRootRenderer}, {provide: ON_WEB_WORKER, useVa

withModule()

Experimental Function Class Export export withModule(moduleDef: TestModuleMetadata) : InjectSetupWrapper exported from @angular/core/testing/index defined in @angular/core/testing/test_bed.ts

Webpack

Create your Angular 2 applications with a Webpack based tooling Webpack is a popular module bundler, a tool for bundling application source code in convenient chunks and for loading that code from a server into a browser. It's an excellent alternative to the SystemJS approach we use throughout the documentation. In this guide we get a taste of Webpack and how to use it with Angular 2 applications. Table of contents What is Webpack? Entries and outputs Loaders Plugins Configuring Webpack Commo

Visual Studio 2015 QuickStart

Use Visual Studio 2015 with the QuickStart files Some developers prefer Visual Studio as their Interactive Development Environment (IDE). This cookbook describes the steps required to set up and use the Angular 2 QuickStart files in Visual Studio 2015 within an ASP.NET 4.x project. There is no live example for this cookbook because it describes Visual Studio, not the application. ASP.NET 4.x Project The steps for setting up the QuickStart files with an ASP.NET 4.x project in Visual Studio 201

ViewRef

Stable Class Class Overview class ViewRef { destroyed : boolean onDestroy(callback: Function) : any } Class Description Class Details destroyed : boolean onDestroy(callback: Function) : any exported from @angular/core/index, defined in @angular/core/src/linker/view_ref.ts

ViewEncapsulation

Stable Enum Class Overview class ViewEncapsulation { Emulated Native None } Class Description Defines template and style encapsulation options available for Component's Component. See ViewMetadata. Class Details Emulated Emulate Native scoping of styles by adding an attribute containing surrogate id to the Host Element and pre-processing the style rules provided via ViewMetadata or ViewMetadata, and adding the new Host Element attribute to all selectors. This is the default opti

ViewContainerRef

Stable Class Class Overview class ViewContainerRef { element : ElementRef injector : Injector parentInjector : Injector clear() : void get(index: number) : ViewRef length : number createEmbeddedView(templateRef: TemplateRef<C>, context?: C, index?: number) : EmbeddedViewRef<C> createComponent(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]) : ComponentRef<C> insert(viewRef: ViewRef, index?: numbe

ValueProvider

Stable Interface What it does Configures the Injector to return a value for a token. How to use const provider: ValueProvider = {provide: 'someToken', useValue: 'someValue'}; Interface Overview interface ValueProvider { provide : any useValue : any multi : boolean } Interface Description For more details, see the Dependency Injection Guide. Example const injector = ReflectiveInjector.resolveAndCreate([{provide: String, useValue: 'Hello'}]); expect(injector.get(String)).toEq

Validators

Stable Class Class Overview class Validators { staticrequired(control: AbstractControl) : {[key: string]: boolean} staticminLength(minLength: number) : ValidatorFn staticmaxLength(maxLength: number) : ValidatorFn staticpattern(pattern: string) : ValidatorFn staticnullValidator(c: AbstractControl) : {[key: string]: boolean} staticcompose(validators: ValidatorFn[]) : ValidatorFn staticcomposeAsync(validators: AsyncValidatorFn[]) : AsyncValidatorFn } Class Description Provides a