angular-cancel-on-navigate
angular-cancel-on-navigate copied to clipboard
Usage with ui-router
Hi, I was very frustrated at first because this library wasn't working OK, but after a while I realized that this module uses $locationChangeSuccess event.
Because I'm using ui-router with states, I simple had to replace that event name with '$stateChangeSuccess' and that solved my issue.
I think it could be helpful for others to make this observation in your README, cause ui-router is basically a standard on these days.
Thanks for the library anyway!
I was having the same issue, thanks for the hint!
Thanks, saved my day.