MessageBusSink

Experimental Interface Interface Overview interface MessageBusSink { initChannel(channel: string, runInZone: boolean) : void attachToZone(zone: NgZone) : void to(channel: string) : EventEmitter<any> } Interface Description Interface Details initChannel(channel: string, runInZone: boolean) : void Sets up a new channel on the MessageBusSink. MUST be called before calling to on the channel. If runInZone is true the sink will buffer messages and send only once the zone exits. if

MessageBus

Experimental Class Class Overview class MessageBus { initChannel(channel: string, runInZone?: boolean) : void attachToZone(zone: NgZone) : void from(channel: string) : EventEmitter<any> to(channel: string) : EventEmitter<any> } Class Description Message Bus is a low level API used to communicate between the UI and the background. Communication is based on a channel abstraction. Messages published in a given channel to one MessageBusSink are received on the same channel

MaxLengthValidator

Stable Directive Class Overview class MaxLengthValidator { maxlength : string ngOnChanges(changes: SimpleChanges) validate(c: AbstractControl) : {[key: string]: any} registerOnValidatorChange(fn: () => void) } Selectors [maxlength][formControlName] [maxlength][formControl] [maxlength][ngModel] Class Description A directive which installs the MaxLengthValidator for any formControlName,formControl, or control withngModelthat also has amaxlength` attribute. Class Details maxlen

LowerCasePipe

Stable Pipe What it does Transforms string to lowercase. How to use expression | lowercase NgModuleCommonModule Description Converts value into lowercase string using String.prototype.toLowerCase(). Example @Component({ selector: 'lowerupper-pipe', template: `<div> <label>Name: </label><input #name (keyup)="change(name.value)" type="text"> <p>In lowercase: <pre>'{{value | lowercase}}'</pre> <p>In uppercase: <pre>'{{v

LocationStrategy

Stable Class Class Overview class LocationStrategy { path(includeHash?: boolean) : string prepareExternalUrl(internal: string) : string pushState(state: any, title: string, url: string, queryParams: string) : void replaceState(state: any, title: string, url: string, queryParams: string) : void forward() : void back() : void onPopState(fn: LocationChangeListener) : void getBaseHref() : string } Class Description LocationStrategy is responsible for representing and reading ro

LocationChangeListener

Experimental Interface Interface Overview interface LocationChangeListener { } Interface Description exported from @angular/common/index, defined in @angular/common/src/location/platform_location.ts

LocationChangeEvent

Experimental Interface Interface Overview interface LocationChangeEvent { type : string } Interface Description A serializable version of the event from onPopState or onHashChange Interface Details type : string exported from @angular/common/index, defined in @angular/common/src/location/platform_location.ts

Location

Stable Class Class Overview class Location { staticnormalizeQueryParams(params: string) : string staticjoinWithSlash(start: string, end: string) : string staticstripTrailingSlash(url: string) : string constructor(platformStrategy: LocationStrategy) path(includeHash?: boolean) : string isCurrentPathEqualTo(path: string, query?: string) : boolean normalize(url: string) : string prepareExternalUrl(url: string) : string go(path: string, query?: string) : void replaceSta

LOCALE_ID

Experimental Const Variable Export export LOCALE_ID exported from @angular/core/index defined in @angular/core/src/i18n/tokens.ts

LoadChildrenCallback

Stable Type-alias What it does The type of loadChildren. See Routes for more details. Interface Overview interface LoadChildrenCallback { } Interface Description exported from @angular/router/index, defined in @angular/router/src/config.ts