Components: Documentation : mat-stepper with components for each step

Created on 11 Mar 2018  路  3Comments  路  Source: angular/components

Bug, feature request, or proposal:

Documentation

What is the expected behavior?

Having a working example with a mat-stepper using "outside" components and their forms for each step.

What is the current behavior?

I just find an example with forms groups inside the component using "mat-stepper" itself.

Is there anything else we should know?

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 ?

P4 materiastepper docs good first issue help wanted

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?

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings