diff --git a/src/app/researcher/researcher-routing.module.ts b/src/app/researcher/researcher-routing.module.ts index e480636..4cf8610 100644 --- a/src/app/researcher/researcher-routing.module.ts +++ b/src/app/researcher/researcher-routing.module.ts @@ -9,7 +9,6 @@ const routes: Routes = [ ]; @NgModule({ - imports: [RouterModule.forRoot(routes)], - exports: [RouterModule] + imports: [RouterModule.forChild(routes)] }) export class ResearcherRoutingModule { } diff --git a/src/app/researcher/search-researcher/search-researcher.module.ts b/src/app/researcher/search-researcher/search-researcher.module.ts index e26087a..8b9d2c7 100644 --- a/src/app/researcher/search-researcher/search-researcher.module.ts +++ b/src/app/researcher/search-researcher/search-researcher.module.ts @@ -6,14 +6,13 @@ import {SearchInputModule} from "../../openaireLibrary/sharedComponents/search-i import {MatSelectModule} from "@angular/material/select"; import {SearchOrcidServiceModule} from "../../openaireLibrary/claims/claim-utils/service/searchOrcidService.module"; import {SearchResearchResultsServiceModule} from "../../openaireLibrary/services/searchResearchResultsService.module"; -import {PagingModule} from "../../openaireLibrary/utils/paging.module"; @NgModule({ declarations: [SearchResearcherComponent], imports: [ - CommonModule, SearchResearcherRoutingModule, SearchInputModule, MatSelectModule, SearchOrcidServiceModule, SearchResearchResultsServiceModule, PagingModule + CommonModule, SearchResearcherRoutingModule, SearchInputModule, MatSelectModule, SearchOrcidServiceModule, SearchResearchResultsServiceModule ] })