LocationChangeListener

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

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

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

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

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

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

Lifecycle Hooks

Angular calls lifecycle hook methods on directives and components as it creates, changes, and destroys them. Component Lifecycle A Component has a lifecycle managed by Angular itself. Angular creates it, renders it, creates and renders its children, checks it when its data-bound properties change, and destroys it before removing it from the DOM. Angular offers component lifecycle hooks that give us visibility into these key moments and the ability to act when they occur. We cover these hooks in

LoadChildren

Stable Type-alias What it does The type of loadChildren. See Routes for more details. Interface Overview interface LoadChildren { } Interface Description exported from @angular/router/index, defined in @angular/router/src/config.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