NgSelectOption

From Get docs
< @angular/formsAngular/docs/10/api/forms/ngselectoption


NgSelectOption

directive

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

See also

  • SelectControlValueAccessor

NgModules

Selectors

  • option

Properties

Property Description
id: string ID of the option element
@Input()ngValue: any

Write-Only Tracks the value bound to the option element. Unlike the value binding, ngValue supports binding to objects.

@Input()value: any

Write-Only Tracks simple string values bound to the option element. For objects, use the ngValue input binding.


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/forms/NgSelectOption