ViewEncapsulation

Stable Enum Class Overview class ViewEncapsulation { Emulated Native None } Class Description Defines template and style encapsulation options available for Component's Component. See ViewMetadata. Class Details Emulated Emulate Native scoping of styles by adding an attribute containing surrogate id to the Host Element and pre-processing the style rules provided via ViewMetadata or ViewMetadata, and adding the new Host Element attribute to all selectors. This is the default opti

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

Component Interaction

Share information between different directives and components This cookbook contains recipes for common component communication scenarios in which two or more components share information. Table of contents Pass data from parent to child with input binding Intercept input property changes with a setter Intercept input property changes with ngOnChanges Parent listens for child event Parent interacts with child via a local variable Parent calls a ViewChild Parent and children communicate via a se

ComponentRef

Stable Class Class Overview class ComponentRef { C location : ElementRef injector : Injector instance : C hostView : ViewRef changeDetectorRef : ChangeDetectorRef componentType : Type<any> destroy() : void onDestroy(callback: Function) : void } Class Description Represents an instance of a Component created via a ComponentFactory. ComponentRef provides access to the Component Instance as well other objects related to this Component Instance and allows you to destro

ComponentFactory

Stable Class Class Overview class ComponentFactory { constructor(selector: string, _viewFactory: Function, _componentType: Type<any>) C selector : string componentType : Type<any> create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string|any) : ComponentRef<C> } Class Description Constructor constructor(selector: string, _viewFactory: Function, _componentType: Type<any>) Class Details C selector : string componentType :

ANALYZE_FOR_ENTRY_COMPONENTS

Experimental Const Variable Export export ANALYZE_FOR_ENTRY_COMPONENTS This token can be used to create a virtual provider that will populate the entryComponents fields of components and ng modules based on its useValue. All components that are referenced in the useValue value (either directly or in a nested array or map) will be added to the entryComponents property. Example The following example shows how the router can populate the entryComponents field of an NgModule based on the router

IterableDiffers

Stable Class Class Overview class IterableDiffers { staticcreate(factories: IterableDifferFactory[], parent?: IterableDiffers) : IterableDiffers staticextend(factories: IterableDifferFactory[]) : Provider constructor(factories: IterableDifferFactory[]) factories : IterableDifferFactory[] find(iterable: any) : IterableDifferFactory } Class Description A repository of different iterable diffing strategies used by NgFor, NgClass, and others. Constructor constructor(factories

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

platformBrowserDynamic

Experimental Const Variable Export export platformBrowserDynamic exported from @angular/platform-browser-dynamic/index defined in @angular/platform-browser-dynamic/src/platform-browser-dynamic.ts

Params

Stable Type-alias Interface Overview interface Params { } Interface Description A collection of parameters. exported from @angular/router/index, defined in @angular/router/src/shared.ts