How to router.navigate to same route in Angular 4 and catch the same event?

前端 未结 4 505
情深已故
情深已故 2021-01-02 08:35

Okay, I have two use cases for my question here:

  1. I\'m working on an application which has a /en/register route. It all works good when I\'m at t

4条回答
  •  悲&欢浪女
    2021-01-02 09:10

    i use this workaround

    this.router.navigate(['path']).then(()=>  {window.location.reload();});
    

提交回复
热议问题