angluar 判断后跳转加参数

mac2022-06-30  20

多个参数

 

this.router.navigate(["deposits"],{queryParams:{'currencyId':currencyId}});

 跳转到另一个组件接收的时候

 

this.currencyId = this._activatedRoute.snapshot.queryParams['currencyId'];

单个参数

 

this.router.navigate(["deposits",currencyId]);会以地址后加\的方式传输

 

转载于:https://www.cnblogs.com/king94Boy/p/9645803.html

最新回复(0)