angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

Feature Request for Material-Stepper make activeStepIndex an Input

Open reducedcarpet opened this issue 5 years ago • 0 comments

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.

reducedcarpet avatar Mar 08 '20 11:03 reducedcarpet