I am trying to show an array of emails with Angular 4 react form and bind an array from my inputs, so in the component I wrote this:
<li>
<h4>Telephone</h4>
<div class="lists" formArrayName="telephones">
<mat-form-field *ngFor="let telephone of userData.telephones; let i = index">
<input matInput [(ngModel)]="telephone">
</mat-form-field>
</div>
</li>
I need to show a telephone number array and I want to make its fields editable with ngModel.
I've tried a lot things: a formArrayName solution with [formGroupName]="index" and formControlName="", but it didn't work. Also a ngModel with ngFor solution that requires a unique name.