angular-cancel-on-navigate icon indicating copy to clipboard operation
angular-cancel-on-navigate copied to clipboard

Usage with ui-router

Open edriang opened this issue 9 years ago • 2 comments

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!

edriang avatar Sep 03 '15 16:09 edriang

I was having the same issue, thanks for the hint!

mcelotti avatar Mar 08 '17 09:03 mcelotti

Thanks, saved my day.

Makanz avatar Apr 19 '17 07:04 Makanz