After following a tutorial on creating a reactive form in an Angular application, I managed to implement it successfully. However, I encountered an issue when trying to add an additional control called "setNumber" to the form array. I want this control to auto-populate in the form based on the component iteration, instead of being manually inputted through the "name" and "gender" fields.
My StackBlitz code can be found here, in which I have included "setNumber" as its own input field within the form. While it works fine on my local machine, I am receiving a type error on StackBlitz. Despite this, the code functions as intended.
View the application screenshot here
Although I have tried using property binding to automatically populate the setNumber in the userArray within the component, I have not been successful so far. Any assistance in resolving this issue would be greatly appreciated!
Thank you