填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

NgSelectOption

把选项 <option> 标记为动态的,这样 Angular 就会在选项变化时得到通知。

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

参见

NgModules

选择器

  • option

属性

属性说明
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.

方法

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

ngOnDestroy(): void
      
      ngOnDestroy(): void
    
参数

没有参数。

返回值

void