I have a form array inside a formbuilder and i am dynamically changing forms, i.e. on click load data from application 1 etc.
The issue i am having is that all the
I am very late but I found some other way where you don't need to have loops. you can reset array by setting array control to empty.
Below code will reset your array.
this.form.setControl('name', this.fb.array([]))