CommonModule

Stable Class Class Overview class CommonModule { } Class Description The module that includes all the basic Angular directives like NgIf, NgFor, ... Annotations @NgModule({ declarations: [COMMON_DIRECTIVES, COMMON_PIPES], exports: [COMMON_DIRECTIVES, COMMON_PIPES], providers: [ {provide: NgLocalization, useClass: NgLocaleLocalization}, ], }) exported from @angular/common/index, defined in @angular/common/src/common_module.ts

common

Module Entry point for all public APIs of the common package. APP_BASE_HREF AsyncPipe CommonModule CurrencyPipe DatePipe DecimalPipe HashLocationStrategy I18nPluralPipe I18nSelectPipe JsonPipe Location LocationChangeEvent LocationChangeListener LocationStrategy LowerCasePipe NgClass NgFor NgIf NgLocalization NgPlural NgPluralCase NgStyle NgSwitch NgSwitchCase NgSwitchDefault NgTemplateOutlet PathLocationStrategy PercentPipe PlatformLocation SlicePipe UpperCasePipe defined in @angular/common/i

CollectionChangeRecord

Stable Class Class Overview class CollectionChangeRecord { constructor(item: any, trackById: any) currentIndex : number previousIndex : number item : any trackById : any toString() : string } Class Description Constructor constructor(item: any, trackById: any) Class Details currentIndex : number previousIndex : number item : any trackById : any toString() : string exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/default_itera

ClientMessageBrokerFactory

Experimental Class Class Overview class ClientMessageBrokerFactory { createMessageBroker(channel: string, runInZone?: boolean) : ClientMessageBroker } Class Description Class Details createMessageBroker(channel: string, runInZone?: boolean) : ClientMessageBroker Initializes the given channel and attaches a new ClientMessageBroker to it. exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/client_message_broker.ts

ClientMessageBroker

Experimental Class Class Overview class ClientMessageBroker { runOnService(args: UiArguments, returnType: Type<any>) : Promise<any> } Class Description Class Details runOnService(args: UiArguments, returnType: Type<any>) : Promise<any> exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/client_message_broker.ts

ClassProvider

Stable Interface What it does Configures the Injector to return an instance of useClass for a token. How to use @Injectable() class MyService {} const provider: ClassProvider = {provide: 'someToken', useClass: MyService}; Interface Overview interface ClassProvider { provide : any useClass : Type<any> multi : boolean } Interface Description For more details, see the Dependency Injection Guide. Example abstract class Shape { name: string; } class Square extends Shape { n

ClassDefinition

Stable Interface Interface Overview interface ClassDefinition { extends : Type<any> constructor : Function|any[] } Interface Description Declares the interface to be used with Class. Interface Details extends : Type<any> Optional argument for specifying the superclass. constructor : Function|any[] Required constructor function for a class. The function may be optionally wrapped in an Array, in which case additional parameter annotations may be specified. The number of ar

Class()

Stable Function Class Export export Class(clsDef: ClassDefinition) : Type<any> Provides a way for expressing ES6 classes with parameter annotations in ES5. Basic Example var Greeter = ng.Class({ constructor: function(name) { this.name = name; }, greet: function() { alert('Hello ' + this.name + '!'); } }); is equivalent to ES6: class Greeter { constructor(name) { this.name = name; } greet() { alert('Hello ' + this.name + '!'); } } or equivalent to ES5

CheckboxControlValueAccessor

Stable Directive Class Overview class CheckboxControlValueAccessor { constructor(_renderer: Renderer, _elementRef: ElementRef) onChange : (_: any) => {} onTouched : () => {} writeValue(value: any) : void registerOnChange(fn: (_: any) => {}) : void registerOnTouched(fn: () => {}) : void setDisabledState(isDisabled: boolean) : void } Selectors input[type=checkbox][formControlName] input[type=checkbox][formControl] input[type=checkbox][ngModel] Class Descript

ChangeDetectorRef

Stable Class Class Overview class ChangeDetectorRef { markForCheck() : void detach() : void detectChanges() : void checkNoChanges() : void reattach() : void } Class Description Class Details markForCheck() : void Marks all ChangeDetectionStrategy ancestors as to be checked. (live demo) @Component({ selector: 'cmp', changeDetection: ChangeDetectionStrategy.OnPush, template: `Number of ticks: {{numberOfTicks}}` }) class Cmp { numberOfTicks = 0; constructor(ref: Chang