I'm creating a formarray of formgroups
const skillsControl = <FormArray>this.form.controls['skills'];
this.selectedCourse.requiredSkills.forEach(skill => {
const s = this.fb.group({
instructor: ['', Validators.required],
...other controls...
});
skillsControl.push(s);
}
Each selectedCourse will have a unique set of skills.
I need to be able to display the name of the skill, and then the form controls associated to that skill.
How do i associate the required skill object with its respective form group?