Skip to content

Commit

Permalink
fix: handle standalone component routing with loadComponent (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni authored Jun 23, 2022
1 parent 2840b0f commit 4a5ea46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export class PageRouterOutlet implements OnDestroy, RouterOutletContract {
}

private getComponentFactory(activatedRoute: ActivatedRoute, loadedResolver: ComponentFactoryResolver): ComponentFactory<any> {
const { component } = activatedRoute.routeConfig;
const component = activatedRoute.routeConfig.component || activatedRoute.component;

return loadedResolver ? loadedResolver.resolveComponentFactory(component) : this.componentFactoryResolver.resolveComponentFactory(component);
}
Expand Down

0 comments on commit 4a5ea46

Please sign in to comment.