how to create a formGroup with a nested form inside it angular 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]),
}),
...
});