Angular 2 reload route on param change

后端 未结 13 1131
小鲜肉
小鲜肉 2020-12-07 13:15

I am currently writing my first Angular 2 Application. I have an OverviewComponent which has the following simple template:

13条回答
  •  感动是毒
    2020-12-07 13:27

    Use this on your constructor()

    this.router.routeReuseStrategy.shouldReuseRoute = () => false;
    

提交回复
热议问题