Skip to content

Commit 3077f5b

Browse files
committed
fix: update RouteReusableStrategy for Angular 11 (#576)
1 parent 8592a71 commit 3077f5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generators/app/templates/src/app/@core/route-reusable-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class RouteReusableStrategy extends RouteReuseStrategy {
2323
return null;
2424
}
2525

26-
public shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {
26+
public shouldReuseRoute(curr: ActivatedRouteSnapshot, future: ActivatedRouteSnapshot): boolean {
2727
// Reuse the route if the RouteConfig is the same, or if both routes use the
2828
// same component, because the latter can have different RouteConfigs.
2929
return future.routeConfig === curr.routeConfig ||

0 commit comments

Comments
 (0)