-
Improvement
-
Resolution: Won't Fix
-
Minor
-
None
-
DEV backlog
-
Medium
Right now, to unload remote addons we refresh the current page. This is an ugly solution, specially on real devices where it seems that the app has frozen for a few seconds before the real refresh happens.
An alternative is to destroy and re-create the app, we can show an spinner or something while this process is happening. I tried to do this but I get a lot of errors when bootstrapping the app again, the most common is:
Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
|
Watchers fired in the last 5 iterations: []
|
How to reproduce this error:
- In index.html, change the body to this:
<body>
<div ng-app="mm">
<ion-nav-view></ion-nav-view>
</div>
</body>
- In console, execute the following code:
var div = angular.element('<div><ion-nav-view></ion-nav-view></div>');
document.querySelector('div[ng-app="mm"]').remove();
angular.element(document.body).prepend(div);
angular.bootstrap(div, ['mm']);
I tried to create a plunkr to reproduce the issue, but with a really simple app it doesn't seem to happen:
- has to be done after
-
MOBILE-925 Add support for remote add-ons
-
- Closed
-