ocLazyLoad in ionic


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?


If I understand you correctly this is already part of Ionic 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.


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.