angluar 判断后跳转加参数

多个参数

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