@sigautomacao wrote:
I need to get input value inside ngFor, are inputs created dynamically with ngFor and wanted the value of each.
<ion-item-group *ngIf="adicionais && adicionais.length"> <ion-item-divider color="light">Adicionais</ion-item-divider> <ion-item *ngFor="let adc of adicionais;let i = index"> <ion-label>{{adc.descri}} - R$ {{money(adc.preco)}}:</ion-label> <ion-input type="text" value="0" [(ngModel)]="adcs[i].qtd" (keyup)="addc()"></ion-input> </ion-item> </ion-item-group>
Posts: 1
Participants: 1