Being new to Angular, I am faced with a challenge of organizing a large form into smaller modular components. I have created multiple child components and integrated their selectors in the main parent component. In the parent component, there is a 'save' button that, when clicked, should send all the data from the form (child components) for an API call.
I am familiar with emitting data from child to parent using '@Output', but I usually trigger this action by clicking a button within the child component. However, in my scenario, there are no buttons within the child components. So I am looking for a more efficient way to achieve the same result. Does anyone have a working example on StackBlitz or any other suggestions?
Any help would be greatly appreciated! Thank you!