Angular 2 Cannot find control with unspecified name attribute on formArrays
The problem for me was that I had
[formControlName]=""
Instead of
formControlName=""
In my case I solved the issue by putting the name of the formControl in double and sinlge quotes so that it is interpreted as a string:
[formControlName]="'familyName'"
similar to below:
formControlName="familyName"
Remove the brackets from
[formArrayName]="areas"
and use only
formArrayName="areas"
This, because with [ ]
you are trying to bind a variable, which this is not. Also notice your submit, it should be:
(ngSubmit)="onSubmit(areasForm.value)"
instead of areasForm.values
.