“Ngfor in Select” Kod odpowiedzi

Ng dla wybranych kątów

<select [(ngModel)]="passenger.Title">
    <option *ngFor="let title of titleArray" [value]="title.Value">
      {{title.Text}}
    </option>
</select>
Coding Owl

Ngfor in Select

//angular
<select [(ngModel)]="passenger.Title">
    <option *ngFor="let title of titleArray" [value]="title.Value">
      {{title.Text}}
    </option>
</select>
Vivacious Vendace

Wybierz opcję NGFOR ON i 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>
Alert Ape

Odpowiedzi podobne do “Ngfor in Select”

Pytania podobne do “Ngfor in Select”

Więcej pokrewnych odpowiedzi na “Ngfor in Select” w HTML

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu