ChangeDetectionStrategy

Stable Enum Class Overview class ChangeDetectionStrategy { OnPush Default } Class Description Describes within the change detector which strategy will be used the next time change detection is triggered. Class Details OnPush OnPush means that the change detector's mode will be set to CheckOnce during hydration. Default Default means that the change detector's mode will be set to CheckAlways during hydration. exported from @angular/core/index, defined in @angular/core/src/change_d

CanLoad

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a children can be loaded. How to use class UserToken {} class Permissions { canLoadChildren(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanLoadTeamSection implements CanLoad { constructor(private permissions: Permissions, private currentUser: UserToken) {} canLoad(route: Route( route: Route ): Observable<boolean>|Promise<boolean>|bool

CanDeactivate

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a route can be deactivated. How to use class UserToken {} class Permissions { canDeactivate(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanDeactivateTeam implements CanDeactivate<TeamComponent> { constructor(private permissions: Permissions, private currentUser: UserToken) {} canDeactivate( component: TeamComponent, route: ActivatedRouteS

CanActivateChild

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a child route can be activated. How to use class UserToken {} class Permissions { canActivate(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanActivateTeam implements CanActivate { constructor(private permissions: Permissions, private currentUser: UserToken) {} canActivateChild( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Obser

CanActivate

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a route can be activated. How to use class UserToken {} class Permissions { canActivate(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanActivateTeam implements CanActivate { constructor(private permissions: Permissions, private currentUser: UserToken) {} canActivate( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Observable<bo

By

Experimental Class Class Overview class By { staticall() : Predicate<DebugElement> staticcss(selector: string) : Predicate<DebugElement> staticdirective(type: Type<any>) : Predicate<DebugElement> } Class Description Predicates for use with DebugElement's query functions. Static Members all() : Predicate<DebugElement> Match all elements. debugElement.query(By.all()); css(selector: string) : Predicate<DebugElement> Match elements by the given CSS

BrowserXhr

Experimental Class Class Overview class BrowserXhr { constructor() build() : any } Class Description A backend for http that uses the XMLHttpRequest browser API. Take care not to evaluate this in non-browser contexts. Annotations @Injectable() Constructor constructor() Class Details build() : any exported from @angular/http/index, defined in @angular/http/src/backends/browser_xhr.ts

BrowserTestingModule

Stable Class Class Overview class BrowserTestingModule { } Class Description NgModule for testing. Annotations @NgModule({ exports: [BrowserModule], providers: [ {provide: APP_ID, useValue: 'a'}, ELEMENT_PROBE_PROVIDERS, {provide: NgZone, useFactory: createNgZone}, {provide: AnimationDriver, useValue: AnimationDriver.NOOP} ] }) exported from @angular/platform-browser/testing/index, defined in @angular/platform-browser/testing/browser.ts

BrowserModule

Stable Class Class Overview class BrowserModule { constructor(parentModule: BrowserModule) } Class Description The ng module for the browser. Annotations @NgModule({ providers: [ BROWSER_SANITIZATION_PROVIDERS, {provide: ErrorHandler, useFactory: errorHandler, deps: []}, {provide: DOCUMENT, useFactory: _document, deps: []}, {provide: EVENT_MANAGER_PLUGINS, useClass: DomEventsPlugin, multi: true}, {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi:

BrowserDynamicTestingModule

Stable Class Class Overview class BrowserDynamicTestingModule { } Class Description NgModule for testing. Annotations @NgModule({ exports: [BrowserTestingModule], providers: [ {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer}, ] }) exported from @angular/platform-browser-dynamic/testing/index, defined in @angular/platform-browser-dynamic/testing/index.ts