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
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