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

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

@reducedcarpet

Description

@reducedcarpet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions