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

Example

<select ngControl="city">
  <option *ngFor="let c of cities" [value]="c"></option>
</select>
Implements
  • OnDestroy
Annotations

Constructors

NgSelectOption(ElementRef _element, Renderer _renderer, @ @ SelectControlValueAccessor _select)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
id → String

read / write
ngValue → dynamic

write-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
value → dynamic

write-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

ngOnDestroy() → void

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited