Problem statement :
Parent component having <form>
tag and some <input>
tags inside it, and child component also have some <input>
tags, parent component has one <submit>
and we are validating form fields on submit the form.
How to validate the child component <input>
fields from parent component on submit
the form ?
Requirement :
If a parent component has a form containing child components with input
components in their template, then these input
components should be validate on click if submit from the parent component.
Findings :
There are lot of posts in SO having same problem statement but did not find any suitable solution.All the below posts validate the whole form but my requirement is to validate each field in child component.