Created
June 28, 2017 12:26
-
-
Save stevermeister/34cbf2a857699fc044344d4f226358a9 to your computer and use it in GitHub Desktop.
This file contains 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
<form [formGroup]="participantsForm"> | |
<ul formArrayName="users"> | |
<li *ngFor="let item of participantsForm.controls.users.controls; let i = index"> | |
<input type="text" formControlName="{{i}}"> <button (click)="removeUser(i)">Remove</button> | |
</li> | |
</ul> | |
</form> | |
<button (click)="addUser()">Add user</button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment