angular forms nested form group set value code example
Example: 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]),
}),
...
});