If I build a Ionic 3.9.2 App using lazy loading, with the @IonicPage decorator, a
NUMBER.js file is generated inside the build directory for each page.
If I look with the debugger the running App I can see that, while entering into each page, the corresponding
NUMBER.js file is loaded on-the-fly from the
What I would like to do, is to be able to have it loaded from a remote server instead, from an URL such as
That way I could modify existing pages (modules), recompile them with AOT and have existing App instances use them.
Beeing able to modify mobile Apps without resubmitting to App stores is one of the strongest point of hybrid Apps against native ones.
With Angular 1 was quite easy to send the templates from server (at the least sending the templates could be enuogh), but with Angular 2+ (and AOT), it seems almost impossible…
Having templates served from a remote server is possible by simply using a remote URL inside
templateUrl, but it does not work if AOT is used, so it may be easier to send the entire module, I don’t know…
Thank you very much in advance for any help, or for any alternative way to reach the same goal.