• Overview
@angular/forms

NgSelectOption

directive

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

API

  
    class NgSelectOption implements OnDestroy {}
  
  

id

string

ID of the option element

ngValue

any

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

value

any

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

ngOnDestroy

void
@returnsvoid

Description

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


Exported by

Jump to details