1<select [(ngModel)]="passenger.Title">
2 <option *ngFor="let title of titleArray" [value]="title.Value">
3 {{title.Text}}
4 </option>
5</select>
1//angular
2<select [(ngModel)]="passenger.Title">
3 <option *ngFor="let title of titleArray" [value]="title.Value">
4 {{title.Text}}
5 </option>
6</select>
1<div>
2 <ul *ngFor="let sentence of sentences;let i = index;" class="collection">
3 <li class="collection-item">
4 <p [ngClass]="{'red': sentence?.disco == 1 , 'green': sentence?.disco == 2 }">{{sentence.viewValue}} </p>
5 <p style="margin-left:20px; font-size:12px!important">
6 <select #val (change)="onChange(val.value,i)">
7 <option *ngFor="let cat of foods" [value]="cat.value" >
8 {{cat.viewValue}}
9 </option>
10 </select>
11 </p>
12 </li>
13 </ul>
14</div>
15