Ionic 3, Serve modules/pages from server


#1

Coming from v1, we always serve app.js/pages from server, Is this possible using the new version? loading modules/components/pages, everything from server?


#2

Hello,

interessting question. I will push this up,maybe someone have a hint, solution, etc…

Best regards, anna-liebt


#3

Its not easy as in angular v1.
What i am did in version 2+ is the all HTML i print base on json data that i receive from server.
And the js file i get as string from server and load it with eval(“js string”);


#4

Thats one way to do it, but ofcourse, its not that optimal, you may face lots of issues later on.


#5

I will be more than happy to hear about another way.