SyntaxFix
Write A Post
Hire A Developer
Questions
You can achieve the same using
<select [ngModel]="object"> <option *ngFor="let object of objects;let i= index;" [value]="object.value" selected="i==0">{{object.name}}</option> </select>