Documentation
Having a working example with a mat-stepper using "outside" components and their forms for each step.
I just find an example with forms groups inside the component using "mat-stepper" itself.
Find two answers, one on StackOverFlow not working...
and another on Reddit with a working stackblitz ! https://stackblitz.com/edit/angular-vpoj5j
If it's the good practice, can you add it to the official documentation ?
Hi @josephperrott why was this closed? I can't find any proper docs for this scenario.. there is any good practice on how to achieve this?
I'm also wondering if this is a good practice, and am looking for a way to remove duplication in the parent component (every component with a stepper will have all these @ViewChild and getters)
I'm also interested in the answer. Specifically I would rather have had the individual steps create their own forms, as opposed to all forms being created in the stepper component.
Most helpful comment
Hi @josephperrott why was this closed? I can't find any proper docs for this scenario.. there is any good practice on how to achieve this?