How to load a module in Angular 2 dynamically without a router?

I have several modules that I want to use for lazy loading on one page. They can be loaded on any of several pages in different configurations. They can be quite heavy, so I don’t want them to load initially. The router is not suitable for this situation. How to lazily download them manually without a router?

+5
source share

Source: https://habr.com/ru/post/1262961/


All Articles