Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created November 12, 2021 20:20
Show Gist options
  • Save dontpaniclabsgists/ad24c05b55885bc55ce373962eeaf6aa to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/ad24c05b55885bc55ce373962eeaf6aa to your computer and use it in GitHub Desktop.
<ng-container formArrayName="admins">
<ng-container *ngFor="let adminForm of admins.controls; let index = index">
<div [formGroupName]="index">
<input id="name" type="text" formControlName="name" />
<input id="email" type="text" formControlName="email" />
</div>
</ng-container>
</ng-container>
@hhsissi
Copy link

hhsissi commented Jun 19, 2022

You just saved my week-end with this [formGroupName]="index"
thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment