OnDestroy

Stable Class What it does Lifecycle hook that is called when a directive or pipe is destroyed. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements OnDestroy { ngOnDestroy() { // ... } } Class Overview class OnDestroy { ngOnDestroy() : void } Class Description ngOnDestroy callback is typically used for any custom cleanup that needs to occur when the instance is destroyed. See Lifecycle Hooks Guide. Class Details ngOnDestroy() : void

NgControlStatusGroup

Stable Directive Class Overview class NgControlStatusGroup { constructor(cd: ControlContainer) } Selectors [formGroupName] [formArrayName] [ngModelGroup] [formGroup] form:not([ngNoForm]) [ngForm] Class Description Directive automatically applied to Angular form groups that sets CSS classes based on control status (valid/invalid/dirty/etc). Constructor constructor(cd: ControlContainer) exported from @angular/forms/index, defined in @angular/forms/src/directives/ng_control_statu

ReceivedMessage

Experimental Class Class Overview class ReceivedMessage { constructor(data: {[key: string]: any}) method : string args : any[] id : string type : string } Class Description Constructor constructor(data: {[key: string]: any}) Class Details method : string args : any[] id : string type : string exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/service_message_broker.ts

upgrade

Module Entry point for all public APIs of the upgrade package. UpgradeAdapter UpgradeAdapterRef defined in @angular/upgrade/index.ts

transition()

Experimental Function Class Export export transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]) : AnimationStateTransitionMetadata transition is an animation-specific function that is designed to be used inside of Angular2's animation DSL language. If this information is new, please navigate to the component animations metadata page to gain a better understanding of how animations in Angular2 are used. transition declares the sequence of animation steps that wil

SimpleChange

Stable Class Class Overview class SimpleChange { constructor(previousValue: any, currentValue: any) previousValue : any currentValue : any isFirstChange() : boolean } Class Description Represents a basic change from a previous to a new value. Constructor constructor(previousValue: any, currentValue: any) Class Details previousValue : any currentValue : any isFirstChange() : boolean Check whether the new value is the first value assigned. exported from @angular/core/ind

core

What it does Marks a class as an Angular component and collects component configuration metadata. How to use . @Component({selector: 'greet', template: 'Hello {{name}}!'}) class Greet { name: string = 'World'; } Description Component decorator allows you to mark a class as an Angular component and provide additional metadata that determines how the component should be processed, instantiated and used at runtime. Components are the most basic building block of an UI in an Angular applic

wtfStartTimeRange

Experimental Const Variable Export export wtfStartTimeRange Used to mark Async start. Async are similar to scope but they don't have to be strictly nested. The return value is used in the call to [endAsync]. Async ranges only work if WTF has been enabled. someMethod() { var s = wtfStartTimeRange('HTTP:GET', 'some.url'); var future = new Future.delay(5).then((_) { wtfEndTimeRange(s); }); } exported from @angular/core/index defined in @angular/core/src/profile/profile.ts

SystemJsNgModuleLoaderConfig

Experimental Class Class Overview class SystemJsNgModuleLoaderConfig { factoryPathPrefix : string factoryPathSuffix : string } Class Description Configuration for SystemJsNgModuleLoader. token. Class Details factoryPathPrefix : string Prefix to add when computing the name of the factory module for a given module name. factoryPathSuffix : string Suffix to add when computing the name of the factory module for a given module name. exported from @angular/core/index, defined in @angular

SpyLocation

Experimental Class Class Overview class SpyLocation { urlChanges : string[] setInitialPath(url: string) setBaseHref(url: string) path() : string isCurrentPathEqualTo(path: string, query?: string) : boolean simulateUrlPop(pathname: string) simulateHashChange(pathname: string) prepareExternalUrl(url: string) : string go(path: string, query?: string) replaceState(path: string, query?: string) forward() back() subscribe(onNext: (value: any) => void, onThrow?: (error: