Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created June 28, 2017 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevermeister/5d87582ba4029fca95d711de0eab7efe to your computer and use it in GitHub Desktop.
Save stevermeister/5d87582ba4029fca95d711de0eab7efe to your computer and use it in GitHub Desktop.
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