Answers for "select in angular"

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

selected angular select

<option *ngFor="let opt of question.options" [value]="opt.key" [selected]="opt.selected == true">{{opt.selected+opt.value}}</option>
Posted by: Guest on June-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language