Dealing with Nested Form Groups
address = new FormGroup({
'com.complex.Address':new FormGroup({
city: cityControl,
streetName: streetNameControl,
houseNumberAddition: houseNumberAdditionControl,
houseNumber: houseNumberControl,
postcode: postcodeControl
})
});
In search of the nested form group labeled "com.complex.Address".
My attempts so far:
this.form.get('address').get('com.complex.Address');
Unfortunately, this always returns a Null value.
As a workaround, if I change the nested form group's name to something like "test" and run
this.form.get('address').get('test');
, it actually returns the desired value.
However, changing the nested name is not an option, especially if it contains special characters.
Is there a way to escape these characters and use the form group as intended?