I am trying to add a select that shows a placeholder by default like this:
<select id="type" formControlName="type">
<option hidden value="" [disabled]="true" [selected]="true">Placeholder</option>
<option *ngFor="let item of ['test 1', 'test 2']" [value]="item">{{ item }}</option>
</select>
I don't see Placeholder in the select when I load the page. But if I do:
<select id="type" formControlName="type">
<option hidden value="" [disabled]="true" [selected]="true">Placeholder</option>
<option>test 1</option>
<option>test 2</option>
</select>
I see it. What is wrong with *ngFor that it does not show the placeholder?