NgSelectOption

directive

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

See also

NgModules

Selectors

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.

Methods

Lifecycle method called before the directive's instance is destroyed. For internal use only.

ngOnDestroy(): void

Parameters

There are no parameters.

Returns

void

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