[master | DONE | CHANGED] move CustomRouteReuseStrategy to openaireLibrary
This commit is contained in:
parent
2bcfe9fc7e
commit
df982704f0
|
@ -19,7 +19,7 @@ import {SearchOrcidService} from "./openaireLibrary/claims/claim-utils/service/s
|
||||||
import {SearchOrcidServiceModule} from "./openaireLibrary/claims/claim-utils/service/searchOrcidService.module";
|
import {SearchOrcidServiceModule} from "./openaireLibrary/claims/claim-utils/service/searchOrcidService.module";
|
||||||
import {HelpPopUpModule} from './shared/help-pop-up/help-pop-up.module';
|
import {HelpPopUpModule} from './shared/help-pop-up/help-pop-up.module';
|
||||||
import {RouteReuseStrategy} from '@angular/router';
|
import {RouteReuseStrategy} from '@angular/router';
|
||||||
import {CustomRouteReuseStrategy} from './shared/custom-route-reuse-strategy';
|
import {CustomRouteReuseStrategy} from './openaireLibrary/shared/custom-route-reuse-strategy';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b054a823daf43cfdbcbf2bdd727a3a7d3704b3ac
|
Subproject commit c4b57e91ab78bdbe16717c0060449ba83ea32968
|
|
@ -1,7 +0,0 @@
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4d41ba373dfb2dfd09ada4061bb1450dadb96993
|
Subproject commit e48bf941bcdc567a3d09826b5686e70d43fafd46
|
|
@ -1 +1 @@
|
||||||
Subproject commit 860bd52a5f4becb94f5c3bf2bee9ae5944513b7a
|
Subproject commit fe10d2e9195fdebf3d906f28abbb072f3617c4ee
|
Loading…
Reference in New Issue