Within my form, I have a FormArray with a string parameter called "Foo". In an attempt to access it, I wrote:
let formArray = this.form.get("Foo") as FormArray;
let formArrayValues: {Foo: string}[]; //this data will be incorporated into the TypeScript model for sending.
I am currently struggling with iterating through the FormArray, retrieving the value of "Foo", and storing it in my new array.
for (let c of formArray.controls) {
formArrayValues.push(c.get("Foo"));
}
Unfortunately, I encountered an error stating that "Foo" is missing in the AbstractControl type. I searched for solutions but couldn't find a similar situation. Any help would be greatly appreciated. Thank you.