In my Angular project, I am faced with the challenge of nesting a formgroup two levels deep to achieve a specific functionality. Here is the scenario:
I have several small formgroups all belonging to a common parentform. However, for a new page, I need to include one additional separate formgroup along with all the children of the existing parentform.
To streamline my code and avoid duplication, I am aiming to create a new parentform with two children: the separate formgroup and the original parentform.
The desired structure looks like this:
child formgroups \
==> original parentform \
==> new parentform
separate formgroup /
Currently, I am importing both the original parentform and the separate formgroup in a similar manner by using methods like parentform.AddControl('separate', separate formgroup) and parentform.AddControl('original parent', parentform).
However, I am encountering an issue where the form updates correctly but the object in the body of the PUT request remains unchanged.
My question is whether it is possible to nest formgroups more than one level deep?