Created
June 28, 2017 12:29
-
-
Save stevermeister/5d87582ba4029fca95d711de0eab7efe 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
removeUser(index) { | |
(this.participantsForm.controls['users'] as FormArray).removeAt(index) | |
} | |
addUser() { | |
(this.participantsForm.controls['users'] as FormArray).push( new FormControl() ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment