Currently in the process of developing a classifieds site using Angular. The main component of the route is structured as follows:
Contains static fields (name, email, phone, location, etc.) defined in its template
Includes a dynamically loaded component with its own separate template
I am utilizing Reactive Forms Model to validate the static fields within the main component. Once a field is validated, I store its value in a service property.
The challenge I'm facing is how to validate fields that are loaded with the dynamic component and then gather data from both the main and dynamic components into one unified object or array. Any suggestions on how this can be achieved?