When I am two way binding in input tag, name attribute gets removed from input tag. A binding element is an array.
<div class="row" *ngFor="let box of boxs; let boxindex=index ">
<div class="col-sm-4">
<label>Boxs</label>
<input type="text" name="count[{{boxindex}}]" [(ngModel)]="box[boxindex]">
</div>
</div>
When I am writing in above way name attribute get removed but
<div class="row" *ngFor="let box of boxs; let boxindex=index ">
<div class="col-sm-4">
<label>Boxs</label>
<input type="text" name="count[]" [(ngModel)]="box[boxindex]">
</div>
</div>
in this way name attribute remains. What is Wrong in first code? I am Posting this form to Laravel Route.