fix(router): fix lazy loaded module with wildcard route (#13649)
Closes #12955
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user