dropdown with ngfor in angualr code example
Example: use ngfor to make a dropdown in angular from array
<select [(ngModel)]="selected">
<option *ngFor="let person of people" [ngValue]="person">{{person.name}}</option>
</select>
<div class='show-info'></div>