Lazy loading is not working with aspnet core #1037

Closed
opened 2025-08-09 17:18:38 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ravimittal16 on 2/9/2017

Hello,

I am facing hard time to make the lazy loading working with aspnet-core and angular 2.

tried this
{ path: 'home', loadChildren: () => require("./components/home/home.module")("HomeModule") }
AND
{ path: 'home', loadChildren:() => "./components/home/home.module#HomeModule" },

also tried this plugin

Angular 2 lazy loading with Webpack
but facing the same issue.

*Originally created by @ravimittal16 on 2/9/2017* Hello, I am facing hard time to make the lazy loading working with aspnet-core and angular 2. tried this `{ path: 'home', loadChildren: () => require("./components/home/home.module")("HomeModule") }` AND `{ path: 'home', loadChildren:() => "./components/home/home.module#HomeModule" },` also tried this plugin [Angular 2 lazy loading with Webpack](https://medium.com/@daviddentoom/angular-2-lazy-loading-with-webpack-d25fe71c29c1#.eryzjegp6) but facing the same issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1037
No description provided.