Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Angular has a new websiteHead to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NgSelectOption

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

See also

Exported from

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.