I am looking to implement validation for my Mat-Stepper-Next function in the App Component using child component validators.
I have 3 different form components, each with its own form group, validations, and next button within the component.
I am including these child components in my parent component, where the Mat-Stepper is located.
Can you guide me on how to trigger the validations of the child components within the MatStepper Next function? The child components also have a Next button.
For example, if a form is incomplete or has errors, it should prevent transitioning to the next form.
Parent Component
----------------------------------------------
<mat-horizontal-stepper>
<mat-step label="Form-1">
<app-form1></app-form1>
</mat-step>
<mat-step label="Form-2">
<app-form2></app-form2>
</mat-step>
<mat-step label="Form-3">
<app-form3></app-form3>
</mat-step>
</mat-horizontal-stepper>