angular reactive forms multiple form groups code example
Example 1: accessing formcontrol from fromgroup
this.myForm.controls["key"]
(or)
this.myForm.get("key")
Example 2: reactive form nested form group
// Reactive Forms Nested formControls
yourFormName: FormGroup = new FormGroup({
pet: new FormGroup({
name: new FormControl('', [Validators.required]),
age: new FormControl('', [Validators.required]),
}),
...
});