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

withModule()

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

WrappedValue

Stable Class Class Overview class WrappedValue { staticwrap(value: any) : WrappedValue constructor(wrapped: any) wrapped : any } Class Description Indicates that the result of a Pipe transformation has changed even though the reference has not changed. The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored. Example: if (this._latestValue === this._latestReturnedValue) { return this._latestReturnedValue; } else { this._latestReturn

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

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

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

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

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

ValidatorFn

Stable Interface Interface Overview interface ValidatorFn { } Interface Description exported from @angular/forms/index, defined in @angular/forms/src/directives/validators.ts

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