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

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

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

RouterOutletMap

Stable Class What it does Contains all the router outlets created in a component. Class Overview class RouterOutletMap { registerOutlet(name: string, outlet: RouterOutlet) : void removeOutlet(name: string) : void } Class Description Class Details registerOutlet(name: string, outlet: RouterOutlet) : void Adds an outlet to this map. removeOutlet(name: string) : void Removes an outlet from this map. exported from @angular/router/index, defined in @angular/router/src/router_outlet_ma

ControlValueAccessor

Stable Interface Interface Overview interface ControlValueAccessor { writeValue(obj: any) : void registerOnChange(fn: any) : void registerOnTouched(fn: any) : void setDisabledState(isDisabled: boolean) : void } Interface Description A bridge between a control and a native element. A ControlValueAccessor abstracts the operations of writing a new value to a DOM element representing an input control. Please see DefaultValueAccessor for more information. Interface Details writeValue(

RouterLinkWithHref

Stable Directive What it does Lets you link to specific parts of your app. See RouterLink for more information. Class Overview class RouterLinkWithHref { constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy) target : string queryParams : {[k: string]: any} fragment : string routerLinkOptions : {preserveQueryParams: boolean, preserveFragment: boolean} preserveQueryParams : boolean preserveFragment : boolean href : string routerLink

DebugElement

Experimental Class Class Overview class DebugElement { constructor(nativeNode: any, parent: any, _debugInfo: RenderDebugInfo) name : string properties : {[key: string]: any} attributes : {[key: string]: string} classes : {[key: string]: boolean} styles : {[key: string]: string} childNodes : DebugNode[] nativeElement : any addChild(child: DebugNode) removeChild(child: DebugNode) insertChildrenAfter(child: DebugNode, newChildren: DebugNode[]) query(predicate: Pred

platform-browser

Module Entry point for all public APIs of the platform-browser/testing package. BrowserTestingModule platformBrowserTesting defined in @angular/platform-browser/testing/index.ts

DoCheck

Stable Class What it does Lifecycle hook that is called when Angular dirty checks a directive. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements DoCheck { ngDoCheck() { // ... } } Class Overview class DoCheck { ngDoCheck() : void } Class Description ngDoCheck gets called to check the changes in the directives in addition to the default algorithm. The default change detection algorithm looks for differences by comparing bound-property

discardPeriodicTasks()

Experimental Function Class Export export discardPeriodicTasks() : void Discard all remaining periodic tasks. exported from @angular/core/testing/index defined in @angular/core/testing/fake_async.ts