The following code generates six <select> tags
<span *ngFor="let key of orderedKeys; let i=index;">
Position {{i + 1}}:
<select (change)="changePosition($event.target.value, i+1)" >
<option *ngFor="let option of options" [value]="option" [selected]="option === object[key].name">{{option}}</option>
</select>
<hr>
</span>
The function changePosition swaps the position of two keys in orderedKeys so that the selected option should change for two select tags but one select which should change the value is only focused but is not changing the selected value but why? I also tried it with [(ngModel)]=object[key].name but the same behavior is observed.