ocLazyLoad in ionic


#1

Looking for something like this directive (ocLazyLoad) from angular 1
to use in ionic 2 to load ts files.
Is there any solution for that?


#2

If I understand you correctly this is already part of Ionic 3+:
http://blog.ionic.io/ionic-and-lazy-loading-pt-1/
http://blog.ionic.io/ionic-and-lazy-loading-pt-2/


#3

I saw this.
Its not what i am looking for, i need something that i can get components files (ts,html,sass) from server and load it to app.


#4

If I were Google or Apple, I would reject any app that does this. I would have no way of knowing that you are not downloading and executing malicious code. It’s also pretty antithetical to how Angular’s AoT compilation works, which wants all templates available at build time.