I think this is what you want:
<select id="position"> <option *ngFor='#contactType of contactTypes' [attr.value]='contactType.contactTypeId' [attr.selected]="contactType.contactTypeId == number ? true : null"> {{contactType.description}} </option> </select>
To remove the selected attribute, you need to return null ( false result selected="false" ).
Günter zöchbauer
source share