AbstractControlDirective

Stable Class Class Overview class AbstractControlDirective { control : AbstractControl value : any valid : boolean invalid : boolean pending : boolean errors : {[key: string]: any} pristine : boolean dirty : boolean touched : boolean untouched : boolean disabled : boolean enabled : boolean statusChanges : Observable<any> valueChanges : Observable<any> path : string[] reset(value?: any) : void } Class Description Base class for control directives.

AfterViewInit

Stable Class What it does Lifecycle hook that is called after a component's view has been fully initialized. How to use . @Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterViewInit { ngAfterViewInit() { // ... } } Class Overview class AfterViewInit { ngAfterViewInit() : void } Class Description See Lifecycle Hooks Guide. Class Details ngAfterViewInit() : void exported from @angular/core/index, defined in @angular/core/src/metadata/lifecyc

Pipe

Stable Interface Interface Overview interface Pipe { name : string pure : boolean } Interface Description Pipe decorator and metadata. Interface Details name : string pure : boolean exported from @angular/core/index, defined in @angular/core/src/metadata/directives.ts

NavigationCancel

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

Title

Experimental Class Class Overview class Title { getTitle() : string setTitle(newTitle: string) } Class Description A service that can be used to get and set the title of a current HTML document. Since an Angular 2 application can't be bootstrapped on the entire HTML document (<html> tag) it is not possible to bind to the text property of the HTMLTitleElement elements (representing the <title> tag). Instead, this service can be used to set and get the current title value.

NgSwitchDefault

Stable Directive What it does Creates a view that is added to the parent NgSwitch when no case expressions match the switch expression. How to use <container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> <some-other-element *ngSwitchDefault>...</some-other-element> </container-element> Class Overview class NgSwitchDefault { constructor(viewContainer: ViewContainerRef, templateRef: Tem

NgTemplateOutlet

Experimental Directive What it does Inserts an embedded view from a prepared TemplateRef How to use <template [ngTemplateOutlet]="templateRefExpression" [ngOutletContext]="objectExpression"> </template> Class Overview class NgTemplateOutlet { constructor(_viewContainerRef: ViewContainerRef) ngOutletContext ngTemplateOutlet ngOnChanges() } Selectors [ngTemplateOutlet] Class Description You can attach a context object to the EmbeddedViewRef by set

SecurityContext

Stable Enum Class Overview class SecurityContext { NONE HTML STYLE SCRIPT URL RESOURCE_URL } Class Description Class Details NONE HTML STYLE SCRIPT URL RESOURCE_URL exported from @angular/core/index, defined in @angular/core/src/security.ts

RenderComponentType

Experimental Class Class Overview class RenderComponentType { constructor(id: string, templateUrl: string, slotCount: number, encapsulation: ViewEncapsulation, styles: Array<string|any[]>, animations: {[key: string]: Function}) id : string templateUrl : string slotCount : number encapsulation : ViewEncapsulation styles : Array<string|any[]> animations : {[key: string]: Function} } Class Description Constructor constructor(id: string, templateUrl: string, slo

ResolvedReflectiveProvider

Experimental Interface Interface Overview interface ResolvedReflectiveProvider { key : ReflectiveKey resolvedFactories : ResolvedReflectiveFactory[] multiProvider : boolean } Interface Description An internal resolved representation of a Provider used by the Injector. It is usually created automatically by Injector.resolveAndCreate. It can be created manually, as follows: Example (live demo) var resolvedProviders = Injector.resolve([{ provide: 'message', useValue: 'Hello' }]); var in