Created
November 12, 2021 20:40
-
-
Save dontpaniclabsgists/492e7fbb6acfe5f571081a5b4811a28c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div [formGroup]="companyForm"> | |
<div> | |
<label for="companyName">Company Name</label> | |
<input id="companyName" type="text" formControlName="companyName" /> | |
</div> | |
<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> | |
<button type="button" (click)="addNewAdmin()">Add</button> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment