垫步进请求参数
Mat stepper request param
你好,我正在使用 mat stepper..
我想实现的是:
从请求参数中获取步骤编号并显示第二步,如下所示:http://localhost:4200/matstepper?step=2
传递和检索请求参数没有问题,但我如何显示第二步或第三步?
这可能吗?谢谢..
您可以在步进器上设置 selectedIndex 属性:
<mat-stepper [selectedIndex]="calculatedStepIndex">...</mat-stepper>
你好,我正在使用 mat stepper..
我想实现的是:
从请求参数中获取步骤编号并显示第二步,如下所示:http://localhost:4200/matstepper?step=2
传递和检索请求参数没有问题,但我如何显示第二步或第三步?
这可能吗?谢谢..
您可以在步进器上设置 selectedIndex 属性:
<mat-stepper [selectedIndex]="calculatedStepIndex">...</mat-stepper>