Compiler

Stable Class Class Overview class Compiler { compileModuleSync(moduleType: Type<T>) : NgModuleFactory<T> compileModuleAsync(moduleType: Type<T>) : Promise<NgModuleFactory<T>> compileModuleAndAllComponentsSync(moduleType: Type<T>) : ModuleWithComponentFactories<T> compileModuleAndAllComponentsAsync(moduleType: Type<T>) : Promise<ModuleWithComponentFactories<T>> clearCache() : void clearCacheFor(type: Type<any>) }

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

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

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

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

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

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

CanLoad

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a children can be loaded. How to use class UserToken {} class Permissions { canLoadChildren(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanLoadTeamSection implements CanLoad { constructor(private permissions: Permissions, private currentUser: UserToken) {} canLoad(route: Route( route: Route ): Observable<boolean>|Promise<boolean>|bool

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

CanActivateChild

Stable Interface What it does Indicates that a class can implement to be a guard deciding if a child route can be activated. How to use class UserToken {} class Permissions { canActivate(user: UserToken, id: string): boolean { return true; } } @Injectable() class CanActivateTeam implements CanActivate { constructor(private permissions: Permissions, private currentUser: UserToken) {} canActivateChild( route: ActivatedRouteSnapshot, state: RouterStateSnapshot ): Obser