Can't reload/refresh active route

前端 未结 10 1843
遇见更好的自我
遇见更好的自我 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:07

    This is currently not supported. If only parameter values change but the route stays the same the component is not re-created.

    See also https://github.com/angular/angular/issues/9811

    You can subscribe to params to get notified when the params change to re-initialize the component instance.

    See also https://stackoverflow.com/a/38560010/217408

提交回复
热议问题