AngularJS ui-router, how to get the name of the targeted state in the resolve object of an abstract partent state?
state hasn't updated when inside resolve.
My workaround by far is listen to '$stateChangeStart' event by
$rootScope.$on('$stateChangeStart', callback)
this event is emitted before resolve, and second param passed to callback is toState
which has the info you need.
You can put this logic into your Session service