I want my form to have the form group but right now my form group is covered by form array.
donationItemForm = new FormArray<FormGroup<DonationItemForm>>([]);
<form [formGroup]="donationItemForm">
the error is this
Type FormArray<FormGroup> is not assignable to type FormGroup Type FormArray<FormGroup> is not assignable to type FormGroup<any
I have tried using formArrayName but still failed.
New contributor
anscom ooi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Try referencing a formArray
to the root form. Since the form array is the root.
<form [formArray]="donationItemForm">