Answers for "use ngfor to make a dropdown in angular from array"

0

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>
Posted by: Guest on November-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language