angular stepper change wait before changing

Solutions on MaxInterview for angular stepper change wait before changing by the best coders in the world

showing results for - "angular stepper change wait before changing"
Elena
21 Jan 2016
1@ViewChild('stepper', { static: false }) stepper: MatStepper;
2
Logan
15 Aug 2018
1// I personally do this in ngAfterViewInit() method
2setTimeout(() => {
3    this.stepper.steps.forEach((step, idx) => {
4        step.select = () => {
5            // Your custom code here
6            // if you want to change step do execute code below
7            this.selectedStepIndex = idx;
8        };
9    });
10});
11
Juan Sebastián
20 Sep 2020
1<mat-horizontal-stepper [selectedIndex]="selectedStepIndex" #stepper>
2