HostListener

Stable Interface Interface Overview interface HostListener { eventName : string args : string[] } Interface Description HostBinding decorator and metadata. Interface Details eventName : string args : string[] exported from @angular/core/index, defined in @angular/core/src/metadata/directives.ts

assertPlatform()

Experimental Function Class Export export assertPlatform(requiredToken: any) : PlatformRef Checks that there currently is a platform which contains the given token as a provider. exported from @angular/core/index defined in @angular/core/src/application_ref.ts

AfterContentChecked

Stable Class What it does Lifecycle hook that is called after every check of a directive's content. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterContentChecked { ngAfterContentChecked() { // ... } } Class Overview class AfterContentChecked { ngAfterContentChecked() : void } Class Description See Lifecycle Hooks Guide. Class Details ngAfterContentChecked() : void exported from @angular/core/index, defined in @angular/core

NgStyle

Stable Directive What it does Update an HTML element styles. How to use <some-element [ngStyle]="{'font-style': styleExp}">...</some-element> <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element> <some-element [ngStyle]="objExp">...</some-element> Class Overview class NgStyle { constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer) ngStyle ngDoCheck() } Selectors [ngStyle] Class Description

ComponentFixtureNoNgZone

Experimental Const Variable Export export ComponentFixtureNoNgZone exported from @angular/core/testing/index defined in @angular/core/testing/test_bed.ts

TestabilityRegistry

Experimental Class Class Overview class TestabilityRegistry { constructor() registerApplication(token: any, testability: Testability) getTestability(elem: any) : Testability getAllTestabilities() : Testability[] getAllRootElements() : any[] findTestabilityInTree(elem: Node, findInAncestors?: boolean) : Testability } Class Description A global registry of Testability instances for specific elements. Annotations @Injectable() Constructor constructor() Class Details re

Http

Experimental Class Class Overview class Http { constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions) request(url: string|Request, options?: RequestOptionsArgs) : Observable<Response> get(url: string, options?: RequestOptionsArgs) : Observable<Response> post(url: string, body: any, options?: RequestOptionsArgs) : Observable<Response> put(url: string, body: any, options?: RequestOptionsArgs) : Observable<Response> delete(url: string

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

Routes

Stable Type-alias What it does Represents router configuration. Interface Overview interface Routes { } Interface Description Routes is an array of route configurations. Each one has the following properties: path is a string that uses the route matcher DSL. pathMatch is a string that specifies the matching strategy. component is a component type. redirectTo is the url fragment which will replace the current matched segment. outlet is the name of the outlet the component should be p

EVENT_MANAGER_PLUGINS

Stable Const Variable Export export EVENT_MANAGER_PLUGINS exported from @angular/platform-browser/index defined in @angular/platform-browser/src/dom/events/event_manager.ts