Angular 2 lazy load at run time

Do you want to request a feature or report a bug?
I would like to request a feature

What is the current behavior?
I am trying to build an angular 2 app with lazy loading routes. So each feature module of the application is developed and bundled separately and added at run time from different servers . so the entry chunk will have only a route modules where routes are decided on run time . is it possible to load modules as additional chunks [bundled by different webpack instance ] from remote servers at runtime ? what about compiling the entry chunk excluding lazyload dependency?
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
At run time each module should be lazy loaded from the dynamic route information provided at run time which is different for each user. So every feature module is bundled remotely from separate servers and added at run time as bundle which is loaded using require.ensure as additional chunk.
If this is a feature request, what is motivation or use case for changing the behavior?
Feasibility study for a cloud application

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack version : 2.1.0-beta.26 ,
node : v7.3.0

Author: Fantashit

2 thoughts on “Angular 2 lazy load at run time

Comments are closed.