Monday, February 10, 2020

Add an Angular FormControl to a FormGroup in TypeScript!

This offers:

this.myForm.addControl('newControl', new FormControl('', Validators.required));

No comments:

Post a Comment