📜  角度 9 选择中的占位符 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:57.179000             🧑  作者: Mango

代码示例1
Set initial value of month = null in the component.ts and
add [(ngModel)]="month" in the select tag of component.html.

//component.ts
month = null;

//component.html