×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Dec 5, 2017 6:18 AM
Views: 1
Tags: no tags
  1. export class AppComponent {
  2.     qtd:any[] = {};
  3. }
  4.  
  5. <div *ngFor="let num of ['1','2','3']; let i=index">
  6.     <input id="qtd[num]" [(ngModel)]="qtd[num]" type="text"/>
  7. </div>