Angular 2:阻止路由器添加到历史记录
2019-01-24 本文已影响0人
zy_Judy
this.router.navigate([`/ myPage / ${this.Id}`],{relativeTo:this.route});
至:
this.router.navigate([`/ myPage / ${this.Id}`],{relativeTo:this.route,skipLocationChange:true});
this.router.navigate([`/ myPage / ${this.Id}`],{relativeTo:this.route});
至:
this.router.navigate([`/ myPage / ${this.Id}`],{relativeTo:this.route,skipLocationChange:true});