Data

Stable Type-alias What it does Represents the static data associated with a particular route. See Routes for more details. Interface Overview interface Data { } Interface Description exported from @angular/router/index, defined in @angular/router/src/config.ts

BaseResponseOptions

Experimental Class Class Overview class BaseResponseOptions { constructor() } Class Description Subclass of ResponseOptions, with default values. Default values: status: 200 headers: empty Headers object This class could be extended and bound to the ResponseOptions class when configuring an Injector, in order to override the default options used by Http to create Responses. Example (live demo) import {provide} from '@angular/core'; import {bootstrap} from '@angular/platform-browser

Resolve

Stable Interface What it does Indicates that class can implement to be a data provider. How to use class Backend { fetchTeam(id: string) { return 'someTeam'; } } @Injectable() class TeamResolver implements Resolve<Team> { constructor(private backend: Backend) {} resolve( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Observable<any>|Promise<any>|any { return this.backend.fetchTeam(route.params.id); } } @NgModule({ imports: [

NG_ASYNC_VALIDATORS

Stable Const Variable Export export NG_ASYNC_VALIDATORS Providers for asynchronous validators to be used for FormControls in a form. Provide this using multi: true to add validators. See NG_VALIDATORS for more details. exported from @angular/forms/index defined in @angular/forms/src/validators.ts

Provider

Stable Type-alias What it does Describes how the Injector should be configured. How to use See TypeProvider, ValueProvider, ClassProvider, ExistingProvider, FactoryProvider. Interface Overview interface Provider { } Interface Description For more details, see the Dependency Injection Guide. exported from @angular/core/index, defined in @angular/core/src/di/provider.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

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

WORKER_UI_LOCATION_PROVIDERS

Experimental Const Variable Export export WORKER_UI_LOCATION_PROVIDERS A list of Providers. To use the router in a Worker enabled application you must include these providers when setting up the render thread. exported from @angular/platform-webworker/index defined in @angular/platform-webworker/src/web_workers/ui/location_providers.ts

AnimationKeyframesSequenceMetadata

Experimental Class Class Overview class AnimationKeyframesSequenceMetadata { constructor(steps: AnimationStyleMetadata[]) steps : AnimationStyleMetadata[] } Class Description Metadata representing the entry of animations. Instances of this class are provided via the animation DSL when the keyframes animation function is called. Constructor constructor(steps: AnimationStyleMetadata[]) Class Details steps : AnimationStyleMetadata[] exported from @angular/core/index, defined in

resolveForwardRef()

Experimental Function Class Export export resolveForwardRef(type: any) : any Lazily retrieves the reference value from a forwardRef. Acts as the identity function when given a non-forward-ref value. Example (live demo) let ref = forwardRef(() => 'refValue'); expect(resolveForwardRef(ref)).toEqual('refValue'); expect(resolveForwardRef('regularValue')).toEqual('regularValue'); See: forwardRef exported from @angular/core/index defined in @angular/core/src/di/forward_ref.ts