Quramy / ng2-lazy-load-demo

A sample repository for Angular2 lazy module loading
22 stars 4 forks source link

AoT compilation failed on nested lazy-loaded sub modules #3

Open showlong opened 8 years ago

showlong commented 8 years ago

I use this lazy loading approach to my projects. Everything works fine with JiT but failed with AoT. In this demo example, there is only one parent module to lazy load sub modules but I have parent module to lazy load sub modules and sub modules to lazy load sub-sub modules. The code seems compiled fine until the final step to link and it failed to find the sub-sub modules with the relative path to module.

Do you have example to demo lazy load sub-sub modules with AoT?