we have a requirement to load angular templates dynamically at runtime from DB through a rest API call. I know it is possible using JIT compiler but it is not recommended in newer angular versions ( from angular 9 onwards) . Can this be achieved using AOT compiler ? or Do we have any workaround for this like SSR or any other technique ?
-
Technically you can with Ivy by bundling in the compiler. But I don’t think it is recommend and you need to use private API’s for it that might break in future versions..MikeOne– MikeOne2020-10-21 17:33:37 +00:00Commented Oct 21, 2020 at 17:33
-
Thanks ... can you refer to an article ?Qasim Raza– Qasim Raza2020-10-21 18:13:44 +00:00Commented Oct 21, 2020 at 18:13
-
There are some hints here: stackoverflow.com/questions/46576727/…MikeOne– MikeOne2020-10-21 20:56:09 +00:00Commented Oct 21, 2020 at 20:56
Add a comment
|