Can't reload/refresh active route

前端 未结 10 1829
遇见更好的自我
遇见更好的自我 2020-11-30 08:19

I have recently updated to the new RC3 and Router3alpha and it seems some things have changed.

I noticed that a click on the link of an active route does no longer r

10条回答
  •  -上瘾入骨i
    2020-11-30 09:23

    this worked for me, taken from this:

    redirectTo(uri) {
        this.router.navigateByUrl('/', {skipLocationChange: true}).then(() =>
        this.router.navigate([uri]));
      }
    

    now you can use like: this.redirectTo(this.router.url);

提交回复
热议问题