Skip to content

Instantly share code, notes, and snippets.

@carneirocorp
Created February 26, 2019 22:26
Show Gist options
  • Save carneirocorp/9f9458b3c2938655c9bf9305d4a86899 to your computer and use it in GitHub Desktop.
Save carneirocorp/9f9458b3c2938655c9bf9305d4a86899 to your computer and use it in GitHub Desktop.
lista com twoway binding
<tbody>
<tr *ngFor="let item of contrato.contractItemViewModels; let in = index" >
<td>{{ item.contractItem }}</td>
<td>{{ item.productCode }}</td>
<td>{{ item.shortDescription }}</td>
<td>{{ item.value | currency:'BRL' }}</td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockPlanned" [ngModelOptions]="{standalone: true}" /></td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockCustomer" [ngModelOptions]="{standalone: true}" /></td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockControl" [ngModelOptions]="{standalone: true}" /></td>
</tr>
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment