Skip to content

Commit

Permalink
fix: update RouteReusableStrategy for Angular 11 (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jan 14, 2021
1 parent 8592a71 commit 3077f5b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 ||
Expand Down

0 comments on commit 3077f5b

Please sign in to comment.