I am using angular reactive forms and I have child components which have forms but submit button is on parent component so I want to restrict the user to go next page by clicking submit button(parent component) based on the form validation in child components.
My queston is how parent component ts will know that validation of forms in child components has been done
<div class="parent">
<child-form-component></child-form-component>
<button type="submit">Submuit</button>
</div>
Below is the link of stackblitz of sample code
stackblitz link
Hello component have form and parent component is app component.
We are using store, actions and reducers so i dont want to go by subscribe method.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…