From 3077f5bc71c67f0b0f43e4a511314076580068ec Mon Sep 17 00:00:00 2001 From: sinedied Date: Mon, 11 Jan 2021 17:46:36 +0100 Subject: [PATCH] fix: update RouteReusableStrategy for Angular 11 (#576) --- .../app/templates/src/app/@core/route-reusable-strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/app/templates/src/app/@core/route-reusable-strategy.ts b/generators/app/templates/src/app/@core/route-reusable-strategy.ts index 15e2b08e..d4ea59ac 100644 --- a/generators/app/templates/src/app/@core/route-reusable-strategy.ts +++ b/generators/app/templates/src/app/@core/route-reusable-strategy.ts @@ -23,7 +23,7 @@ export class RouteReusableStrategy extends RouteReuseStrategy { return null; } - public shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean { + public shouldReuseRoute(curr: ActivatedRouteSnapshot, future: ActivatedRouteSnapshot): boolean { // Reuse the route if the RouteConfig is the same, or if both routes use the // same component, because the latter can have different RouteConfigs. return future.routeConfig === curr.routeConfig ||