NG_VALUE_ACCESSOR

Stable Const Variable Export export NG_VALUE_ACCESSOR Used to provide a ControlValueAccessor for form controls. See DefaultValueAccessor for how to implement one. exported from @angular/forms/index defined in @angular/forms/src/directives/control_value_accessor.ts

NG_VALIDATORS

Stable Const Variable Export export NG_VALIDATORS Providers for validators to be used for FormControls in a form. Provide this using multi: true to add validators. Example BAD FILENAME: ../../../../../_fragments/_api/core/forms/ts/ng_validators/ng_validators-ng_validators.ts.md Current path: docs,ts,latest,api,forms,index,NG_VALIDATORS-let PathToDocs: ../../../../../ exported from @angular/forms/index defined in @angular/forms/src/validators.ts

NG_ASYNC_VALIDATORS

Stable Const Variable Export export NG_ASYNC_VALIDATORS Providers for asynchronous validators to be used for FormControls in a form. Provide this using multi: true to add validators. See NG_VALIDATORS for more details. exported from @angular/forms/index defined in @angular/forms/src/validators.ts

NgZone

Experimental Class Class Overview class NgZone { staticisInAngularZone() : boolean staticassertInAngularZone() : void staticassertNotInAngularZone() : void constructor({enableLongStackTrace = false}: any) onUnstable : EventEmitter<any> onMicrotaskEmpty : EventEmitter<any> onStable : EventEmitter<any> onError : EventEmitter<any> isStable : boolean hasPendingMicrotasks : boolean hasPendingMacrotasks : boolean run(fn: () => any) : any r

NgTemplateOutlet

Experimental Directive What it does Inserts an embedded view from a prepared TemplateRef How to use <template [ngTemplateOutlet]="templateRefExpression" [ngOutletContext]="objectExpression"> </template> Class Overview class NgTemplateOutlet { constructor(_viewContainerRef: ViewContainerRef) ngOutletContext ngTemplateOutlet ngOnChanges() } Selectors [ngTemplateOutlet] Class Description You can attach a context object to the EmbeddedViewRef by set

NgSwitchDefault

Stable Directive What it does Creates a view that is added to the parent NgSwitch when no case expressions match the switch expression. How to use <container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> <some-other-element *ngSwitchDefault>...</some-other-element> </container-element> Class Overview class NgSwitchDefault { constructor(viewContainer: ViewContainerRef, templateRef: Tem

NgSwitchCase

Stable Directive What it does Creates a view that will be added/removed from the parent NgSwitch when the given expression evaluate to respectively the same/different value as the switch expression. How to use <container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> </container-element> Class Overview class NgSwitchCase { constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Obje

NgSwitch

Stable Directive What it does Adds / removes DOM sub-trees when the nest match expressions matches the switch expression. How to use <container-element [ngSwitch]="switch_expression"> <some-element *ngSwitchCase="match_expression_1">...</some-element> <some-element *ngSwitchCase="match_expression_2">...</some-element> <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element> <ng-container *ngSwitchCase="match_expres

NgStyle

Stable Directive What it does Update an HTML element styles. How to use <some-element [ngStyle]="{'font-style': styleExp}">...</some-element> <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element> <some-element [ngStyle]="objExp">...</some-element> Class Overview class NgStyle { constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer) ngStyle ngDoCheck() } Selectors [ngStyle] Class Description

NgSelectOption

Stable Directive Class Overview class NgSelectOption { constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor) id : string ngValue value ngOnDestroy() } Selectors option Class Description Marks <option> as dynamic, so Angular can be notified when options change. Example <select name="city" ngModel> <option *ngFor="let c of cities" [value]="c"></option> </select> Constructor constructor(_element: Elem