Reputation: 5547
I have an angular 2 model driven form that has a property of type FormArray
. When I call the myForm.reset(this._originalValue)
method, the number of items in the FormArray
is not reset to the original value.
Here is a plunker showing the problem: https://plnkr.co/edit/gRHD5Ikbm1aGzFQUF2nn?p=preview
Is there a way to force the myForm.reset()
method to reset the count of items in properties of type FormArray
? Or do I have to manually reset it?
Upvotes: 8
Views: 1524
Reputation: 5547
Well, it appears this is a known issue and the Angular team has decided that folks will have to manually reset the FormArray size.
https://github.com/angular/angular/issues/10960
Upvotes: 5