路由传参时url不显示参数
2017-09-15 本文已影响19人
幸福幸福幸福
配置skipLocationChange: true就可以使参数不显示在url中,但是刷新失效
this.router.navigate(['/heroes', { id: this.hero, foo: 'foo' }], { skipLocationChange: true });
配置skipLocationChange: true就可以使参数不显示在url中,但是刷新失效
this.router.navigate(['/heroes', { id: this.hero, foo: 'foo' }], { skipLocationChange: true });