W3cubDocs

/Angular 4 TypeScript

NgSelectOption

Stable Directive

What it does

Marks <option> as dynamic, so Angular can be notified when options change.

How to use

See docs for SelectControlValueAccessor for usage examples.

Class Overview

class NgSelectOption implements OnDestroy {
  constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor)
  
  
  id : string
  ngValue 
  value 
  ngOnDestroy() : void
}

Selectors

option

Class Description

Constructor

constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor)

Class Details

id : string
ngValue
value
ngOnDestroy() : void

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

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/forms/index/NgSelectOption-directive.html