I have a form group like so:
this.form = fb.group({
'teacher': [''],
'schools': fb.array([
fb.group({
'school_name': [''],
'school_description': [''],
'events': fb.array([
fb.group({
'event_name': ['']
})
])
})
])
});
const control = (<FormArray>this.form.controls['schools']).controls[0]['events'];
How do I get the nested array control 'events'?
const control = (<FormArray>this.form.controls['schools']).controls[0]['events'];