NgSelectOption class

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>
Annotations
  • @Directive(selector: 'option')

Constructors

NgSelectOption(HtmlElement element, @Optional() @Host() SelectControlValueAccessor? _select)

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
latefinal
ngValue Object?
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object?
no getter

Methods

ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited