RouterLinkActive

Stable Directive What it does Lets you add a CSS class to an element when the link's route becomes active. How to use <a [routerLink]='/user/bob' routerLinkActive='active-link'>Bob</a> Class Overview class RouterLinkActive { constructor(router: Router, element: ElementRef, renderer: Renderer) links : QueryList<RouterLink> linksWithHrefs : QueryList<RouterLinkWithHref> routerLinkActiveOptions : {exact: boolean} ngAfterContentInit() : void routerL

NavigationEnd

Stable Class What it does Represents an event triggered when a navigation ends successfully. Class Overview class NavigationEnd { constructor(id: number, url: string, urlAfterRedirects: string) id : number url : string urlAfterRedirects : string toString() : string } Class Description Constructor constructor(id: number, url: string, urlAfterRedirects: string) Class Details id : number url : string urlAfterRedirects : string toString() : string exported from @angular

NavigationStart

Stable Class What it does Represents an event triggered when a navigation starts. Class Overview class NavigationStart { constructor(id: number, url: string) id : number url : string toString() : string } Class Description Constructor constructor(id: number, url: string) Class Details id : number url : string toString() : string exported from @angular/router/index, defined in @angular/router/src/router.ts

NavigationError

Stable Class What it does Represents an event triggered when a navigation fails due to an unexpected error. Class Overview class NavigationError { constructor(id: number, url: string, error: any) id : number url : string error : any toString() : string } Class Description Constructor constructor(id: number, url: string, error: any) Class Details id : number url : string error : any toString() : string exported from @angular/router/index, defined in @angular/router/s

RouterOutlet

Stable Directive What it does Acts as a placeholder that Angular dynamically fills based on the current router state. How to use <router-outlet></router-outlet> <router-outlet name='left'></router-outlet> <router-outlet name='right'></router-outlet> A router outlet will emit an activate event any time a new component is being instantiated, and a deactivate event when it is being destroyed. <router-outlet (activate)='onActivate($event)' (deactivat

Connection

Experimental Class Class Overview class Connection { readyState : ReadyState request : Request response : any } Class Description Abstract class from which real connections are derived. Class Details readyState : ReadyState request : Request response : any exported from @angular/http/index, defined in @angular/http/src/interfaces.ts

MaxLengthValidator

Stable Directive Class Overview class MaxLengthValidator { maxlength : string ngOnChanges(changes: SimpleChanges) validate(c: AbstractControl) : {[key: string]: any} registerOnValidatorChange(fn: () => void) } Selectors [maxlength][formControlName] [maxlength][formControl] [maxlength][ngModel] Class Description A directive which installs the MaxLengthValidator for any formControlName,formControl, or control withngModelthat also has amaxlength` attribute. Class Details maxlen

Response

Experimental Class Class Overview class Response { constructor(responseOptions: ResponseOptions) type : ResponseType ok : boolean url : string status : number statusText : string bytesLoaded : number totalBytes : number headers : Headers toString() : string } Class Description Creates Response instances from provided values. Though this object isn't usually instantiated by end-users, it is the primary object interacted with when it comes time to add data to a view

KeyValueDifferFactory

Stable Interface Interface Overview interface KeyValueDifferFactory { supports(objects: any) : boolean create(cdRef: ChangeDetectorRef) : KeyValueDiffer } Interface Description Provides a factory for KeyValueDiffer. Interface Details supports(objects: any) : boolean create(cdRef: ChangeDetectorRef) : KeyValueDiffer exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/keyvalue_differs.ts

createPlatformFactory()

Experimental Function Class Export export createPlatformFactory(parentPlaformFactory: (extraProviders?: Provider[]) => PlatformRef, name: string, providers?: Provider[]) : (extraProviders?: Provider[]) => PlatformRef Creates a factory for a platform exported from @angular/core/index defined in @angular/core/src/application_ref.ts