Skip to content

Commit 6d12aa9

Browse files
Dzmitry Shylovichhansl
authored andcommitted
fix(router): the preloader use the module from the loaded config
1 parent 96aa236 commit 6d12aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/router_preloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class RouterPreloader {
105105
// we already have the config loaded, just recurse
106106
if (route.loadChildren && !route.canLoad && route._loadedConfig) {
107107
const childConfig = route._loadedConfig;
108-
res.push(this.processRoutes(ngModule, childConfig.routes));
108+
res.push(this.processRoutes(childConfig.module, childConfig.routes));
109109

110110
// no config loaded, fetch the config
111111
} else if (route.loadChildren && !route.canLoad) {

0 commit comments

Comments
 (0)