I am facing a challenge with an accordion feature that generates a specified number of sections x based on user input. Here is an example:
https://i.sstatic.net/QjmkW.png
After creating the sections, I need to load employee information into each section separately. However, when I load the information in one form, it gets duplicated in all other forms:
https://i.sstatic.net/StIw2.jpg
I attempted to resolve this by using an array of formGroups in my TypeScript code and differentiating them using the ngFor index, like so:
https://i.sstatic.net/HkfVa.png
Unfortunately, my attempts have not been successful.