Closed
Description
If you have a .state('mystate', {controller: 'MyCtrl', url: '/a/{id}'})
, then navigating from /a/1
to /a/2
does not trigger a controller reload. This appears to be by design (
ui-router/src/viewDirective.js
Line 25 in c85f721
I can think of two ways to implement this: a $state.reload()
function, or a reloadOnParamsChange
param to state (similar to reloadOnSearch
). I can submit a PR that implements one of these if you think that is the right approach. If I am approaching this wrong, please let me know.
BTW, great project! Thanks!
Metadata
Metadata
Assignees
Labels
No labels