I am new in angular. I have a big form. I want to make it modular. That's why I have created multiple smaller child component and all that component selector I have used in main parent component. I have save
button in parent
component, On click of save button all the data of form(child component) should be sent for the api call.
I know how to emit the data from child to parent using @Output
, but I know only, when I click on some button in child component to emit the data from child to parent,
But in my case I don't have any button in my child component. So is there any efficient way to acheive the same? Or should I not use this approach? Or any one have working example in stackblitz?
Thanks in advance!!!