ngfor in select
//angular
<select [(ngModel)]="passenger.Title">
<option *ngFor="let title of titleArray" [value]="title.Value">
{{title.Text}}
</option>
</select>
ngfor in select
//angular
<select [(ngModel)]="passenger.Title">
<option *ngFor="let title of titleArray" [value]="title.Value">
{{title.Text}}
</option>
</select>
select with ngFor on option and ul
<div>
<ul *ngFor="let sentence of sentences;let i = index;" class="collection">
<li class="collection-item">
<p [ngClass]="{'red': sentence?.disco == 1 , 'green': sentence?.disco == 2 }">{{sentence.viewValue}} </p>
<p style="margin-left:20px; font-size:12px!important">
<select #val (change)="onChange(val.value,i)">
<option *ngFor="let cat of foods" [value]="cat.value" >
{{cat.viewValue}}
</option>
</select>
</p>
</li>
</ul>
</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us