How to show placeholder (empty option) in select control in Angular 2?
问题 I have this code in my template: <select [ngModel]="selectedSubSectionId" (ngModelChange)="onSubSectionChange($event)"> <option *ngFor="let subSection of event.subSections" [ngValue]="subSection.id">{{ subSection.name }}</option> </select> In my component: public selectedSubSectionId: any; public onSubSectionChange(subSectionId: any) { // some code I execute after ngModel changes. } This works ok, but at the beginning I have an empty box. I want to show a placeholder message there. How can I