Fixed route reuse

This commit is contained in:
Adina Țeudan 2022-05-12 18:42:17 +03:00
parent e20ed84ca2
commit 58f7b5d8b9

View File

@ -66,7 +66,7 @@ export class CustomRouteReuseStrategy implements RouteReuseStrategy {
}
shouldReuseRoute(future: ActivatedRouteSnapshot, current: ActivatedRouteSnapshot): boolean {
return future.routeConfig === current.routeConfig || this._getKey(future) === this._getKey(current);
return this._getKey(future) === this._getKey(current);
}
private _getKey(route: ActivatedRouteSnapshot): string {