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
Angular v4.4 if you need to save the same reference to the instance of FormArray try this:
purgeForm(form: FormArray) { while (0 !== form.length) { form.removeAt(0); } }