我将尝试使用router.navigate在Angular 2中重新加载相同的URL,但它无法工作。
URL: http://localhost:3000/landing
场景:我正在http://localhost:3000/landing上,并且现在我正在更改页面中的特定参数,这应该重新加载页面。
代码:
代码:
let link = ['Landing'];
this.router.navigate(link);