angular ui-router: how do I reload a state when a path parameter changes but not reload when a query parameter changes?

后端 未结 2 595
灰色年华
灰色年华 2020-12-29 09:08

For example, I want this change in navigation to reload the state:

  • #/detail/1
  • #/detail/2

But I do not want th

2条回答
  •  無奈伤痛
    2020-12-29 09:42

    This is a bug in UI-Router that was fixed in release 0.2.15:

    https://github.com/angular-ui/ui-router/releases

    Upgrading to the latest will fix the issue

提交回复
热议问题