Answers for "ngfor dropdown angular 8"

1

ngfor select angular

<select [(ngModel)]="passenger.Title">
    <option *ngFor="let title of titleArray" [value]="title.Value">
      {{title.Text}}
    </option>
</select>
Posted by: Guest on April-29-2020
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