Skip to content

Instantly share code, notes, and snippets.

@YonathanMeguira
Created October 23, 2017 19:50
Show Gist options
  • Save YonathanMeguira/54646ad2af089905db4607bed2d07951 to your computer and use it in GitHub Desktop.
Save YonathanMeguira/54646ad2af089905db4607bed2d07951 to your computer and use it in GitHub Desktop.
solution
<div *ngFor="let element of myArray; let idx = index">
<input name="someName" [(ngModel)] = "myArray[idx]">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment