[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/forms/NgSelectOption [Back]  [Original]

NgSelectOption Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/forms

NgSelectOption

directive
stable

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

SelectControlValueAccessor

On this page

    arrow_upward_alt Back to the top

    API

        
          class NgSelectOption implements OnDestroy {  constructor(_element: ElementRef<any>, _renderer: Renderer2, _select: SelectControlValueAccessor);  id: string;  @Input() set ngValue(value: any);  @Input() set value(value: any);}
        
        

    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.

    Description

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

    Exported by

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page