angular formcontrolname nested property 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]),
}),
...
});