You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a RxFormGroup object (created from a model) with propArray / formArray within it. Whenever the user adds an item to the list, the array in the model is updated with a new item and patchModelValue(...) is used to update the form with the new changes (array insertion).
Currently the FormArray controls are not updated with the patched model object changes, i.e. if there were 2 items and a 3rd was added the FormArray controls length stays at 2 with the initial 2 items.
Describe the solution you'd like
The FormArray controls within the RxFormGroup should reflect the changes in the value object, i.e. the new controls array should have 3 items in the list with appropriate form controls. And vice versa for removal of items from the array.