ARYF
0
Q:

angular stepper change wait before changing

@ViewChild('stepper', { static: false }) stepper: MatStepper;
0
<mat-horizontal-stepper [selectedIndex]="selectedStepIndex" #stepper>
0
// I personally do this in ngAfterViewInit() method
setTimeout(() => {
    this.stepper.steps.forEach((step, idx) => {
        step.select = () => {
            // Your custom code here
            // if you want to change step do execute code below
            this.selectedStepIndex = idx;
        };
    });
});
0

New to Communities?

Join the community