in legacy ui-router, $stateChangeSuccess is fired immediately after global state is updated and before the views are rendered.
Currently the stateEvents.js polyfill fires the event by chaining off the $transition$.promise, which seems OK, but views can already be loaded at this point.
In 1.0, the hook which updates globals is a priority 10000. The invoke views hook is priority 0.
To match legacy behavior, move the $stateChangeHook polyfill event to priority 9999, just after globals are updated.
Original bug report: #3138
fix($stateChangeSuccess): fire polyfill `$stateChangeSuccess` right a…
…fter global state are updated