Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Feature Request for Material-Stepper make activeStepIndex an Input #462

Open
reducedcarpet opened this issue Mar 8, 2020 · 0 comments
Open

Comments

@reducedcarpet
Copy link

This is more of a feature request than a bug, but the pud.dev page directed me to make an issue rather than a pull request. Also this might be in line with whatever coding principles you guys are about.

I would like to change the activeStep of a material stepper through an input rather than haveing to go around in code with:

@ViewChild(MaterialStepperComponent)
  MaterialStepperComponent stepper;

and then:
stepper.activeStepIndex = myActiveStepWhatISavedFromLastTime;

I thought something like:

    <material-stepper legalJumps="backwards"
                      orientation="vertical"
                      [activeStepIndex]="myActiveStepWhatISavedFromLastTime"
                      size="default">

Would be 'nicer' and save me having to mess around with lifecycle hooks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant