• 개요
@angular/forms

NgSelectOption

디렉티브
안정화

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.

설명

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

다음 모듈에서 내보냄

상세 내용으로 이동