[develop | DONE | CHANGED] move CustomRouteReuseStrategy to openaireLibrary
This commit is contained in:
parent
b054a823da
commit
c4b57e91ab
|
@ -0,0 +1,7 @@
|
|||
import {ActivatedRouteSnapshot, BaseRouteReuseStrategy} from "@angular/router";
|
||||
|
||||
export class CustomRouteReuseStrategy extends BaseRouteReuseStrategy {
|
||||
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {
|
||||
return future.routeConfig === curr.routeConfig || (!!future.routeConfig?.component && future.routeConfig?.component === curr.routeConfig?.component)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue