Answers for "iterate select drop down in *ngFor"

1

ngfor in select

//angular
<select [(ngModel)]="passenger.Title">
    <option *ngFor="let title of titleArray" [value]="title.Value">
      {{title.Text}}
    </option>
</select>
Posted by: Guest on November-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language