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: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor)

Class Details

id : string
ngValue
value
ngOnDestroy()

exported from @angular/forms/index, defined in @angular/forms/src/directives/select_control_value_accessor.ts

doc_Angular
2016-10-06 09:46:46
Comments
Leave a Comment

Please login to continue.