我有下面的代码工作:占位符不angular2
<div class="form-group" [class.has-error]="!account.value && !account.pristine">
<label class="sr-only" for="account">Account</label> <select class="form-control" required [(ngModel)]="model.accountId" ngControl="account" #account="ngForm">
<option value="" disabled="disabled" selected="selected">Account</option>
<option *ngFor="#acc of accounts" [value]="acc.id">{{acc.name}}</option> </select>
</div>
其中占位符不与ANGULAR2工作。
如果您需要更多信息,请让我知道吗?
请,包括代码作为文本而不是图片。它会使其他人更容易帮助您 – Bustikiller
得到解决。看看我的回答 – uksz