8

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?

1

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.