I've been looking through the internet and couldn't find any answer.
I'm using angular 10 and reactive forms.
Here is my problem: Clicking on submit button triggers validity on my form on the button level but not at a child component level
Here is the StackBlitz
if you press "save" in this example you'll see only the first input triggers validation and goes red whereas the other needs to be manually clicked on. I'm having a formGroup
with 2 controls, 1 is a FormControl
and the other one a FormArray
. I pass the main formGroup
to the child component and push 1 formGroup
inside the formArray
, this formGroup
has one formControl
. So basically I have at the leaf two FormControl
. please tell me if that don't make sense.
So instead I would like validity for all of the elements to be checked, weither it is inside a child component or not.