I have a select input:
<select id="duration" name="duration" class="form-control select-lg"
[(ngModel)]="championship.settings.fightDuration">
<option *ngFor="let duration of durations"
[selected]="championship.settings.fightDuration==duration">
{{ duration }} {{ championship.settings.fightDuration==duration }}
</option>
</select>
I have his value within championship.settings.fightDuration
I try to preselect it with:
[selected]="championship.settings.fightDuration==duration"
I in select text, I print the result of this condition, and it prints true on the element that matches the values, so it should work, but select has no selected value...
What am I missing ?