more_horiz
@angular/formscode
NgSelectOption
directive
stable
Marks <option> as dynamic, so Angular can be notified when options change.
On this page
API
class NgSelectOption implements OnDestroy { constructor(_element: ElementRef<any>, _renderer: Renderer2, _select: SelectControlValueAccessor); id: string; @Input() set ngValue(value: any); @Input() set value(value: any);}
ngValue
anyTracks the value bound to the option element. Unlike the value binding, ngValue supports binding to objects.
value
anyTracks simple string values bound to the option element.
For objects, use the ngValue input binding.
Jump to details