This is a common thing... Just add an empty <option>
as the first:
<select #typ class="input" (change)="changeIndex(typ.value)">
<option></option>
<option *ngFor="let creation of creationComponent>{{creation.name}}</option>
</select>
You cannot have anything unselected for a <select>
tag. This should fix it. Quoting from Turnip's comment: A select has to have a selected option. If you don't explicitly set one using the selected attribute the first will be used. For a better version, you can use the following code with selected
attribute:
<select #typ class="input" (change)="changeIndex(typ.value)">
<option selected="selected" value=""></option>
<option *ngFor="let creation of creationComponent>{{creation.name}}</option>
</select>