I am trying to use a simple select dropdown which should be having a default option selected. I tried using ngValue, selected, [selected]="true" but none of them work.
<select class="form-control" [(ngModel)]="keyType">
<option [ngValue]="'Numeric'" selected>Numeric</option>
<option [ngValue]="'Random'">Random</option>
</select>
It shows as blank initially, but when I choose any option, there's no blank option anymore. I can't make changes on the TS side, because keytype is always '', unless a certain condition is met.
Stackblitz link: https://stackblitz.com/edit/angular-zhtkiv?file=src%2Fapp%2Fapp.component.html