Angular: Lazy-loaded modules do not work
See original GitHub issueWhen I try to lazy-load a module using loadChildren
in a route config, StackBlitz fails.
See example: https://stackblitz.com/edit/angular-lazy-loading?file=app%2Fapp.module.ts
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Angular 8 - Lazy Loading of Module not working
The student module needs to use .forChild() when declaring routes since it is a child module. const routes:Routes = [ { path ...
Read more >Lazy-loading feature modules - Angular
You can verify that a module is indeed being lazy loaded with the Chrome developer tools. In Chrome, open the developer tools by...
Read more >Why is Angular Lazy loading and routing not working after ...
In my application , lazy loading was perfectly working in Angular 4 and 5 . However , after I migrated to Angular 6...
Read more >Angular Lazy Loading — Not Only For The Lazy
Lazy Loading Modules in Angular Angular doesn't support lazy variables natively but it supports the lazy loading modules, which are way more ...
Read more >Manually Lazy Load Modules And Components In Angular
The loadLazyModules method simulates a backend request. After a successful request, a module is registered using the import(...) syntax. If you now run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LayZeeDK I know how to fix it! I’ll get a fix in for this early next week 😃
Good catch — we haven’t added lazy loading in yet 😅 I’ll start digging into this!