fix(router): the preloader use the module from the loaded config

This commit is contained in:
Dzmitry Shylovich 2017-04-04 22:45:53 -06:00 committed by Hans
parent 96aa2365ae
commit 6d12aa978d
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export class RouterPreloader {
// we already have the config loaded, just recurse
if (route.loadChildren && !route.canLoad && route._loadedConfig) {
const childConfig = route._loadedConfig;
res.push(this.processRoutes(ngModule, childConfig.routes));
res.push(this.processRoutes(childConfig.module, childConfig.routes));
// no config loaded, fetch the config
} else if (route.loadChildren && !route.canLoad) {