-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please update howto for lazy loading a component #829
Comments
Angular 2 is changing a lot, i think they will probably delay it a bit more until an official release, making docs for something that could easily change in a few weeks or months is time consuming. |
Did you find any updates on this? See #967 |
I actually have Lazy loading working with child pages included, i think with RC.6 is rather easy. |
@Luchillo example? |
@paralin Here's mine, just starting a showcase repo but routes are working: https://github.com/Luchillo/Luchillo-tech-showcase |
Why u dont use https://github.com/Quramy/angular2-load-children-loader ? (for webpack 2) with es6-promise its look like, export const appRoutes: Routes = [
{path: "", component: MainHomeComponent},
{path: "about", component: MainAboutComponent },
{path: "sub", loadChildren: "es6-promise!./sub.module#SubModule"}
]; |
Me? this repo? anyway it's to be more in sync with the future of JS, At the end it is roughly the same result, only that the |
just modify this code to imports section, replace this: more information at here: |
I can't bring lazy loading to work. The description here is very poor and should be updated for new router:
https://github.com/AngularClass/angular2-webpack-starter/wiki/How-do-I-async-load-a-component-with-AsyncRoute
Please have a look at my stackoverflow question, would be great to get some hints for the implementation.
http://stackoverflow.com/questions/38736366/how-do-i-async-load-a-component-with-asyncroute-in-webpack
Best regards
westor
The text was updated successfully, but these errors were encountered: