use ngfor to make a dropdown in angular from array

Solutions on MaxInterview for use ngfor to make a dropdown in angular from array by the best coders in the world

showing results for - "use ngfor to make a dropdown in angular from array"
Sylvester
13 Jul 2020
1<select [(ngModel)]="selected">
2  <option *ngFor="let person of people" [ngValue]="person">{{person.name}}</option>
3</select>
4
5<div class='show-info'></div>
6