Closed ProdigySim closed 4 years ago
From services.ts it looks like maybe $q
and $injector
are shared across multiple ui-router instances, and so when $rootScope
dies on my new app, $q
at the very least stops working.
Edit: I can confirm that replacing the services.$q
with a reference to the older app's $q
makes the page work again.
Just tried to update to ui-router 1.0 again and I'm still hitting this issue.
The line overriding the services has moved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
This is a (check one box):
My version of UI-Router is: 1.0.12 My version of AngularJs is: 1.6.7, 1.5.8
Bug Report
Current Behavior:
I have a project that leverages two angular applications (created with
angular.bootstrap()
) on the same page. They both useui-router
and work fine while they are alive (state transitions and all).However, if I destroy one angular app (
$rootScope.$destroy()
), the routing on the other app stops working.Expected Behavior:
The routing should still work properly on the other angular app, even after one dies.
Note: This was working fine on ui-router 0.4.2
Link to Plunker or stackblitz that reproduces the issue:
I built it on jsbin because I am a pleb: https://jsbin.com/sufamusice/1/edit?html,js,output
Mostly minimal repro: