{ "id": "api/forms/NgSelectOption", "title": "NgSelectOption", "contents": "\n\n
\n
\n
\n \n API > @angular/forms\n
\n \n
\n \n
\n

NgSelectOptionlink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n \n
\n \n \n \n \n
\n

See alsolink

\n \n
\n\n\n

NgModuleslink

\n\n\n\n \n
\n

Selectorslink

\n \n
    \n
  • option
  • \n \n
\n \n
\n\n\n\n \n\n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n id: string\n \n \n

ID of the option element

\n\n \n
\n \n @Input()
ngValue: any
\n
Write-Only\n \n

Tracks the value bound to the option element. Unlike the value binding,\nngValue supports binding to objects.

\n\n \n
\n \n @Input()
value: any
\n
Write-Only\n \n

Tracks simple string values bound to the option element.\nFor objects, use the ngValue input binding.

\n\n \n
\n
\n\n\n\n \n\n\n \n\n \n\n \n\n \n\n \n \n \n\n
\n
\n\n\n" }