Reactive forms. formArrayName with formGroupName #23016
Labels
area: forms
freq1: low
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
type: bug/fix
Milestone
I'm submitting a...
Current behavior
parties: FormArray(SomeObject[])
In this code example, I don't iterate over
parties
. As a content only show some view with form control at specifiedindex
. This index offormGroupName
changes dynamically and in this casesformControlName
value doesn't update. First renderedformControlName
value only shown.Expected behavior
When
formGroupName
changes need to updateformControlName
values too.In my code example
selectedParty
change, which will trigger to update[formGroupName]
Temporary solution:
Remove this view from template and insert it again with using
setTimeout()
:Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: