I am looking for something that will be somewhat equivalent to the functionality of the UI-Router $rootScope.$on('$stateChange...' version 1.0. I know about the new $ transition service, but I cannot figure out exactly how to make it work the same.
I created a minimal reproducible plunker below to try to highlight how I use this service, and I hope to get some idea of ââa new approach for this in v1.0 + UI-Router
https://plnkr.co/edit/ddabHc9oXEbqMoNZHYs2?p=preview
Not only does the transition fail at each transition, but it does not work at all for child transitions. Is this expected behavior? It seems to work in a state of kinship, but it still appears only once (perhaps because caching is involved?). I would think that even if the "state" is loaded via the cache, the "transition" is still happening.
Interested in knowing the functionality you need here. Thanks!
angularjs angular-ui-router
Brian anderson
source share