Angular select tab placeholder

参考How to set placeholder on select

在一般情况下,下面的代码就可以实现

<select>
    <option value="" disabled selected>Select your option</option>
    <option value="hurr">Durr</option>
</select>

但是如果你的option是一个列表

<select>
    <option value="undefined" disabled selected>Select your option</option>
    <option *ngFor="let item of list" [ngValue]="item">{{item}}</option>
</select>

第一个option的value就必须设置为undefined