垫步进器请求参数

问题描述

你好,我正在用垫子步进器。

我想要实现的是:

从请求参数中获取步骤号,并显示第二步,如下所示:http:// localhost:4200 / matstepper?step = 2

传递和检索请求参数没问题,但是如何显示第二步或第三步?

这可能吗?谢谢。

解决方法

您可以在步进器上设置selectedIndex属性:

<mat-stepper [selectedIndex]="calculatedStepIndex">...</mat-stepper>

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...