0

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 ?

3
  • 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.. Commented Oct 21, 2020 at 17:33
  • Thanks ... can you refer to an article ? Commented Oct 21, 2020 at 18:13
  • There are some hints here: stackoverflow.com/questions/46576727/… Commented Oct 21, 2020 at 20:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.