These are chat archives for AngularClass/angular2-webpack-starter

19th
Sep 2016
anotherjsguy
@kuldeepkeshwar
Sep 19 2016 13:47
any example of lazy loading routes with angular2 and webpack
Chris Grant
@ChrisGrant
Sep 19 2016 16:49
@mclouvem do you know of any that lazy load modules?
i.e. { path: 'documents', loadChildren: 'app/documents/documents.module#DocumentsModule' },
Anthony
@qdouble
Sep 19 2016 17:35
@ChrisGrant it's lazy loading module on the link that he gave
Chris Grant
@ChrisGrant
Sep 19 2016 17:41
@qdouble of a component, not a module.
Anthony
@qdouble
Sep 19 2016 17:41
@ChrisGrant no, that's a module being lazy loaded....there is no component lazy loading Angular router as far as I know
Chris Grant
@ChrisGrant
Sep 19 2016 17:42
@qdouble have a look at https://plnkr.co/edit/rUBPd3xVhDo5iS5hIf7F?p=preview app/app.routing.ts here
@qdouble I've figured it out now anyway but thanks :). I'm doing it with this library https://github.com/brandonroberts/angular2-router-loader
Anthony
@qdouble
Sep 19 2016 17:47
@ChrisGrant yeah, that's the same thing I'm using
mclouvem
@mclouvem
Sep 19 2016 18:29
@ChrisGrant Sorry, I thought about module lazy loading. I've just discovered the @qdouble starter; and I'm trying to implement my current project using it
Chris Grant
@ChrisGrant
Sep 19 2016 18:46
@mclouvem no problem. the link helped me a bit anyway so thanks!