fix(router): fix lazy loaded module with wildcard route (#13649)

Closes #12955
This commit is contained in:
Dzmitry Shylovich
2016-12-28 02:22:57 +03:00
committed by Hans
parent eed83443b8
commit 0eca960494
2 changed files with 28 additions and 2 deletions

View File

@ -235,7 +235,7 @@ class ApplyRedirects {
if (route.loadChildren) {
return map.call(this.configLoader.load(injector, route.loadChildren), (r: any) => {
(<any>route)._loadedConfig = r;
return of (new UrlSegmentGroup(segments, {}));
return new UrlSegmentGroup(segments, {});
});
} else {
return of (new UrlSegmentGroup(segments, {}));
@ -503,4 +503,4 @@ function emptyPathRedirect(
function getOutlet(route: Route): string {
return route.outlet ? route.outlet : PRIMARY_OUTLET;
}
}