I've multiple input fields that use name="myInput[]"
. How I can use [(ngModel)]
that can catch my myInput
arrays?
<input name="myInput[]" [(ngModel)]="answer" value="abc" />
<input name="myInput[]" [(ngModel)]="answer" value="def" />
Does anyone experience these problems?
Thanks for sharing