From 537dc0758721ced84a620e0aaf29f6f290fc3eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 12 Mar 2024 15:24:54 +0100 Subject: [PATCH] MOBILE-3947 chore: Remove unnecessary route module exports --- src/addons/blog/blog-lazy.module.ts | 3 +-- src/addons/blog/blog.module.ts | 1 - src/addons/calendar/calendar-lazy.module.ts | 3 +-- src/addons/calendar/calendar.module.ts | 1 - src/addons/competency/competency.module.ts | 2 -- src/addons/coursecompletion/coursecompletion-lazy.module.ts | 1 - src/addons/messages/messages-lazy.module.ts | 3 +-- src/addons/messages/messages-settings-lazy.module.ts | 1 - src/addons/notes/notes-lazy.module.ts | 1 - src/addons/notifications/notifications-lazy.module.ts | 3 +-- .../notifications/notifications-settings-lazy.module.ts | 1 - src/addons/notifications/notifications.module.ts | 1 - src/addons/privatefiles/privatefiles-lazy.module.ts | 3 +-- src/addons/privatefiles/privatefiles.module.ts | 1 - src/addons/report/insights/insights.module.ts | 2 -- src/addons/storagemanager/storagemanager-lazy.module.ts | 1 - src/addons/storagemanager/storagemanager.module.ts | 1 - src/app/app-routing.module.ts | 1 - src/core/features/course/course-contents-lazy.module.ts | 3 +-- src/core/features/course/course-lazy.module.ts | 3 +-- src/core/features/course/course-summary-lazy.module.ts | 1 - src/core/features/course/course.module.ts | 1 - src/core/features/courses/courses-dashboard-lazy.module.ts | 1 - src/core/features/courses/courses-lazy.module.ts | 3 +-- src/core/features/courses/courses-my-lazy.module.ts | 1 - src/core/features/courses/courses.module.ts | 1 - src/core/features/login/login-credentials-lazy.module.ts | 1 - src/core/features/login/login-reconnect-lazy.module.ts | 1 - src/core/features/mainmenu/mainmenu-more-lazy.module.ts | 5 +---- src/core/features/mainmenu/mainmenu-reload-lazy.module.ts | 1 - src/core/features/reportbuilder/reportbuilder.module.ts | 2 -- src/core/features/search/search-lazy.module.ts | 3 +-- src/core/features/settings/settings-site-lazy.module.ts | 3 +-- src/core/features/sitehome/sitehome-lazy.module.ts | 1 - src/core/features/tag/tag-lazy.module.ts | 3 +-- src/core/features/tag/tag.module.ts | 1 - src/core/features/user/user-app-lazy.module.ts | 1 - src/core/features/user/user-profile-lazy.module.ts | 1 - 38 files changed, 12 insertions(+), 55 deletions(-) diff --git a/src/addons/blog/blog-lazy.module.ts b/src/addons/blog/blog-lazy.module.ts index 4ee04963b..452aef95a 100644 --- a/src/addons/blog/blog-lazy.module.ts +++ b/src/addons/blog/blog-lazy.module.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreSharedModule } from '@/core/shared.module'; import { AddonBlogEntriesPage } from './pages/entries/entries'; @@ -48,7 +48,6 @@ function buildRoutes(injector: Injector): Routes { CoreTagComponentsModule, CoreMainMenuComponentsModule, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/addons/blog/blog.module.ts b/src/addons/blog/blog.module.ts index b2dbfdde1..2d5f71ff4 100644 --- a/src/addons/blog/blog.module.ts +++ b/src/addons/blog/blog.module.ts @@ -42,7 +42,6 @@ const routes: Routes = [ CoreMainMenuRoutingModule.forChild({ children: routes }), CoreCourseIndexRoutingModule.forChild({ children: routes }), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/calendar/calendar-lazy.module.ts b/src/addons/calendar/calendar-lazy.module.ts index 86f19555f..f423766d3 100644 --- a/src/addons/calendar/calendar-lazy.module.ts +++ b/src/addons/calendar/calendar-lazy.module.ts @@ -20,7 +20,7 @@ import { AddonCalendarEventPage } from '@addons/calendar/pages/event/event'; import { AddonCalendarIndexPage } from '@addons/calendar/pages/index'; import { AddonCalendarSettingsPage } from '@addons/calendar/pages/settings/settings'; import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreEditorComponentsModule } from '@features/editor/components/components.module'; import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module'; @@ -70,7 +70,6 @@ function buildRoutes(injector: Injector): Routes { CoreMainMenuComponentsModule, CoreEditorComponentsModule, ], - exports: [RouterModule], declarations: [ AddonCalendarDayPage, AddonCalendarEditEventPage, diff --git a/src/addons/calendar/calendar.module.ts b/src/addons/calendar/calendar.module.ts index 2faf6597e..f57cfbc76 100644 --- a/src/addons/calendar/calendar.module.ts +++ b/src/addons/calendar/calendar.module.ts @@ -62,7 +62,6 @@ const mainMenuChildrenRoutes: Routes = [ CoreMainMenuRoutingModule.forChild({ children: mainMenuChildrenRoutes }), AddonCalendarComponentsModule, ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: CORE_SITE_SCHEMAS, diff --git a/src/addons/competency/competency.module.ts b/src/addons/competency/competency.module.ts index 8cf0c600b..373b2b4a0 100644 --- a/src/addons/competency/competency.module.ts +++ b/src/addons/competency/competency.module.ts @@ -25,7 +25,6 @@ import { AddonCompetencyPushClickHandler } from './services/handlers/push-click' import { AddonCompetencyUserCompetencyLinkHandler } from './services/handlers/user-competency-link'; import { AddonCompetencyUserHandler } from './services/handlers/user'; import { Routes } from '@angular/router'; -import { CoreMainMenuRoutingModule } from '@features/mainmenu/mainmenu-routing.module'; import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module'; import { CoreCourseIndexRoutingModule } from '@features/course/course-routing.module'; import { COURSE_PAGE_NAME } from '@features/course/course.module'; @@ -77,7 +76,6 @@ const courseIndexRoutes: Routes = [ CoreMainMenuTabRoutingModule.forChild(mainMenuChildrenRoutes), CoreCourseIndexRoutingModule.forChild({ children: courseIndexRoutes }), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/coursecompletion/coursecompletion-lazy.module.ts b/src/addons/coursecompletion/coursecompletion-lazy.module.ts index 2231a59b8..2cf6534f8 100644 --- a/src/addons/coursecompletion/coursecompletion-lazy.module.ts +++ b/src/addons/coursecompletion/coursecompletion-lazy.module.ts @@ -33,7 +33,6 @@ const routes: Routes = [ CoreCommentsComponentsModule, CoreTagComponentsModule, ], - exports: [RouterModule], declarations: [ AddonCourseCompletionReportPage, ], diff --git a/src/addons/messages/messages-lazy.module.ts b/src/addons/messages/messages-lazy.module.ts index e5db4055f..e6ec40442 100644 --- a/src/addons/messages/messages-lazy.module.ts +++ b/src/addons/messages/messages-lazy.module.ts @@ -22,7 +22,7 @@ import { AddonMessagesGroupConversationsPage } from '@addons/messages/pages/grou import { AddonMessagesSearchPage } from '@addons/messages/pages/search/search'; import { AddonMessagesMainMenuHandlerService } from '@addons/messages/services/handlers/mainmenu'; import { Injector, NgModule } from '@angular/core'; -import { Route, RouterModule, ROUTES, Routes } from '@angular/router'; +import { Route, ROUTES, Routes } from '@angular/router'; import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module'; import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module'; @@ -139,7 +139,6 @@ function buildRoutes(injector: Injector): Routes { AddonMessagesGroupConversationsPage, AddonMessagesSearchPage, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/addons/messages/messages-settings-lazy.module.ts b/src/addons/messages/messages-settings-lazy.module.ts index 0bebb54e4..dbfc1d4da 100644 --- a/src/addons/messages/messages-settings-lazy.module.ts +++ b/src/addons/messages/messages-settings-lazy.module.ts @@ -33,6 +33,5 @@ const routes: Routes = [ declarations: [ AddonMessagesSettingsPage, ], - exports: [RouterModule], }) export class AddonMessagesSettingsLazyModule {} diff --git a/src/addons/notes/notes-lazy.module.ts b/src/addons/notes/notes-lazy.module.ts index 90203dd1d..49997cb2e 100644 --- a/src/addons/notes/notes-lazy.module.ts +++ b/src/addons/notes/notes-lazy.module.ts @@ -33,7 +33,6 @@ const routes: Routes = [ CoreCommentsComponentsModule, CoreTagComponentsModule, ], - exports: [RouterModule], declarations: [ AddonNotesListPage, ], diff --git a/src/addons/notifications/notifications-lazy.module.ts b/src/addons/notifications/notifications-lazy.module.ts index 152192646..fddc7ecf5 100644 --- a/src/addons/notifications/notifications-lazy.module.ts +++ b/src/addons/notifications/notifications-lazy.module.ts @@ -17,7 +17,7 @@ import { CoreSharedModule } from '@/core/shared.module'; import { AddonNotificationsListPage } from '@addons/notifications/pages/list/list'; import { AddonNotificationsNotificationPage } from '@addons/notifications/pages/notification/notification'; import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module'; import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module'; @@ -69,7 +69,6 @@ function buildRoutes(injector: Injector): Routes { AddonNotificationsListPage, AddonNotificationsNotificationPage, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/addons/notifications/notifications-settings-lazy.module.ts b/src/addons/notifications/notifications-settings-lazy.module.ts index 9c455d4ce..83d2cd48f 100644 --- a/src/addons/notifications/notifications-settings-lazy.module.ts +++ b/src/addons/notifications/notifications-settings-lazy.module.ts @@ -33,6 +33,5 @@ const routes: Routes = [ declarations: [ AddonNotificationsSettingsPage, ], - exports: [RouterModule], }) export class AddonNotificationsSettingsLazyModule {} diff --git a/src/addons/notifications/notifications.module.ts b/src/addons/notifications/notifications.module.ts index d6b47baa5..855191c7e 100644 --- a/src/addons/notifications/notifications.module.ts +++ b/src/addons/notifications/notifications.module.ts @@ -64,7 +64,6 @@ const preferencesRoutes: Routes = [ CoreMainMenuTabRoutingModule.forChild(routes), CoreSitePreferencesRoutingModule.forChild(preferencesRoutes), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/privatefiles/privatefiles-lazy.module.ts b/src/addons/privatefiles/privatefiles-lazy.module.ts index 43af7745a..b3a68659b 100644 --- a/src/addons/privatefiles/privatefiles-lazy.module.ts +++ b/src/addons/privatefiles/privatefiles-lazy.module.ts @@ -15,7 +15,7 @@ import { CoreSharedModule } from '@/core/shared.module'; import { AddonPrivateFilesIndexPage } from '@addons/privatefiles/pages/index'; import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module'; @@ -49,7 +49,6 @@ function buildRoutes(injector: Injector): Routes { declarations: [ AddonPrivateFilesIndexPage, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/addons/privatefiles/privatefiles.module.ts b/src/addons/privatefiles/privatefiles.module.ts index 99fa913e0..2bdaa95ca 100644 --- a/src/addons/privatefiles/privatefiles.module.ts +++ b/src/addons/privatefiles/privatefiles.module.ts @@ -47,7 +47,6 @@ const routes: Routes = [ CoreMainMenuTabRoutingModule.forChild(routes), CoreMainMenuRoutingModule.forChild({ children: routes }), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/report/insights/insights.module.ts b/src/addons/report/insights/insights.module.ts index cd4a43f9b..334121686 100644 --- a/src/addons/report/insights/insights.module.ts +++ b/src/addons/report/insights/insights.module.ts @@ -18,8 +18,6 @@ import { CoreContentLinksDelegate } from '@features/contentlinks/services/conten import { AddonReportInsightsActionLinkHandler } from './services/handlers/action-link'; @NgModule({ - imports: [], - exports: [], providers: [ { provide: APP_INITIALIZER, diff --git a/src/addons/storagemanager/storagemanager-lazy.module.ts b/src/addons/storagemanager/storagemanager-lazy.module.ts index 7eeeac233..0978a1b64 100644 --- a/src/addons/storagemanager/storagemanager-lazy.module.ts +++ b/src/addons/storagemanager/storagemanager-lazy.module.ts @@ -35,7 +35,6 @@ const routes: Routes = [ RouterModule.forChild(routes), CoreSharedModule, ], - exports: [RouterModule], declarations: [ AddonStorageManagerCoursesStoragePage, AddonStorageManagerCourseStoragePage, diff --git a/src/addons/storagemanager/storagemanager.module.ts b/src/addons/storagemanager/storagemanager.module.ts index 82f6d5e8b..fce59aaec 100644 --- a/src/addons/storagemanager/storagemanager.module.ts +++ b/src/addons/storagemanager/storagemanager.module.ts @@ -33,7 +33,6 @@ const routes: Routes = [ CoreMainMenuRoutingModule.forChild({ children: routes }), CoreSitePreferencesRoutingModule.forChild(routes), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index fca7c6f00..0b7abbfa2 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -226,7 +226,6 @@ export const APP_ROUTES = new InjectionToken('APP_ROUTES'); providers: [ { provide: ROUTES, multi: true, useFactory: buildAppRoutes, deps: [Injector] }, ], - exports: [RouterModule], }) export class AppRoutingModule { diff --git a/src/core/features/course/course-contents-lazy.module.ts b/src/core/features/course/course-contents-lazy.module.ts index d5b6f9aa1..fbbd96d6d 100644 --- a/src/core/features/course/course-contents-lazy.module.ts +++ b/src/core/features/course/course-contents-lazy.module.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; import { CoreSharedModule } from '@/core/shared.module'; @@ -50,6 +50,5 @@ function buildRoutes(injector: Injector): Routes { declarations: [ CoreCourseContentsPage, ], - exports: [RouterModule], }) export class CoreCourseContentsLazyModule {} diff --git a/src/core/features/course/course-lazy.module.ts b/src/core/features/course/course-lazy.module.ts index c706c4240..d89541958 100644 --- a/src/core/features/course/course-lazy.module.ts +++ b/src/core/features/course/course-lazy.module.ts @@ -14,7 +14,7 @@ import { CoreSharedModule } from '@/core/shared.module'; import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreCourseComponentsModule } from '@features/course/components/components.module'; import { resolveIndexRoutes } from '@features/course/course-routing.module'; import { CoreCourseSummaryPageModule } from '@features/course/pages/course-summary/course-summary.module'; @@ -75,7 +75,6 @@ function buildRoutes(injector: Injector): Routes { CoreCourseComponentsModule, CoreCourseSummaryPageModule, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/core/features/course/course-summary-lazy.module.ts b/src/core/features/course/course-summary-lazy.module.ts index 22ff6911c..ab2c5d617 100644 --- a/src/core/features/course/course-summary-lazy.module.ts +++ b/src/core/features/course/course-summary-lazy.module.ts @@ -34,6 +34,5 @@ const routes: Routes = [ CoreRemindersComponentsModule, CoreCourseSummaryPageModule, ], - exports: [RouterModule], }) export class CoreCourseSummaryLazyModule {} diff --git a/src/core/features/course/course.module.ts b/src/core/features/course/course.module.ts index 227b3852e..1ff7255f0 100644 --- a/src/core/features/course/course.module.ts +++ b/src/core/features/course/course.module.ts @@ -86,7 +86,6 @@ const courseIndexRoutes: Routes = [ CoreMainMenuTabRoutingModule.forChild(routes), CoreCourseFormatModule, ], - exports: [CoreCourseIndexRoutingModule], providers: [ { provide: CORE_SITE_SCHEMAS, diff --git a/src/core/features/courses/courses-dashboard-lazy.module.ts b/src/core/features/courses/courses-dashboard-lazy.module.ts index c43129073..dfd408585 100644 --- a/src/core/features/courses/courses-dashboard-lazy.module.ts +++ b/src/core/features/courses/courses-dashboard-lazy.module.ts @@ -35,6 +35,5 @@ const routes: Routes = [ declarations: [ CoreCoursesDashboardPage, ], - exports: [RouterModule], }) export class CoreCoursesDashboardLazyModule {} diff --git a/src/core/features/courses/courses-lazy.module.ts b/src/core/features/courses/courses-lazy.module.ts index 178e63114..d51c13f01 100644 --- a/src/core/features/courses/courses-lazy.module.ts +++ b/src/core/features/courses/courses-lazy.module.ts @@ -14,7 +14,7 @@ import { CoreSharedModule } from '@/core/shared.module'; import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreCoursesComponentsModule } from '@features/courses/components/components.module'; import { CoreCoursesCategoriesPage } from '@features/courses/pages/categories/categories'; import { CoreCoursesListPage } from '@features/courses/pages/list/list'; @@ -70,7 +70,6 @@ function buildRoutes(injector: Injector): Routes { CoreCoursesCategoriesPage, CoreCoursesListPage, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/core/features/courses/courses-my-lazy.module.ts b/src/core/features/courses/courses-my-lazy.module.ts index 5af380251..9f41349db 100644 --- a/src/core/features/courses/courses-my-lazy.module.ts +++ b/src/core/features/courses/courses-my-lazy.module.ts @@ -38,6 +38,5 @@ const routes: Routes = [ declarations: [ CoreCoursesMyPage, ], - exports: [RouterModule], }) export class CoreCoursesMyLazyModule {} diff --git a/src/core/features/courses/courses.module.ts b/src/core/features/courses/courses.module.ts index 418638d3b..1a9faaa6b 100644 --- a/src/core/features/courses/courses.module.ts +++ b/src/core/features/courses/courses.module.ts @@ -78,7 +78,6 @@ const routes: Routes = [ CoreMainMenuRoutingModule.forChild({ children: routes }), CoreMainMenuTabRoutingModule.forChild(routes), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/core/features/login/login-credentials-lazy.module.ts b/src/core/features/login/login-credentials-lazy.module.ts index 3c5d14e09..498025e90 100644 --- a/src/core/features/login/login-credentials-lazy.module.ts +++ b/src/core/features/login/login-credentials-lazy.module.ts @@ -35,6 +35,5 @@ const routes: Routes = [ declarations: [ CoreLoginCredentialsPage, ], - exports: [RouterModule], }) export class CoreLoginCredentialsLazyModule {} diff --git a/src/core/features/login/login-reconnect-lazy.module.ts b/src/core/features/login/login-reconnect-lazy.module.ts index dafd7e819..156ebd210 100644 --- a/src/core/features/login/login-reconnect-lazy.module.ts +++ b/src/core/features/login/login-reconnect-lazy.module.ts @@ -35,6 +35,5 @@ const routes: Routes = [ declarations: [ CoreLoginReconnectPage, ], - exports: [RouterModule], }) export class CoreLoginReconnectLazyModule {} diff --git a/src/core/features/mainmenu/mainmenu-more-lazy.module.ts b/src/core/features/mainmenu/mainmenu-more-lazy.module.ts index e7d53aafc..0c3f9f667 100644 --- a/src/core/features/mainmenu/mainmenu-more-lazy.module.ts +++ b/src/core/features/mainmenu/mainmenu-more-lazy.module.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { RouterModule, Routes, ROUTES } from '@angular/router'; +import { Routes, ROUTES } from '@angular/router'; import { CoreSharedModule } from '@/core/shared.module'; import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module'; @@ -52,8 +52,5 @@ function buildRoutes(injector: Injector): Routes { declarations: [ CoreMainMenuMorePage, ], - exports: [ - RouterModule, - ], }) export class CoreMainMenuMoreLazyModule {} diff --git a/src/core/features/mainmenu/mainmenu-reload-lazy.module.ts b/src/core/features/mainmenu/mainmenu-reload-lazy.module.ts index d9fab0633..b1aaa8baa 100644 --- a/src/core/features/mainmenu/mainmenu-reload-lazy.module.ts +++ b/src/core/features/mainmenu/mainmenu-reload-lazy.module.ts @@ -32,6 +32,5 @@ const routes: Routes = [ declarations: [ CoreMainMenuReloadPage, ], - exports: [RouterModule], }) export class CoreMainMenuReloadLazyModule {} diff --git a/src/core/features/reportbuilder/reportbuilder.module.ts b/src/core/features/reportbuilder/reportbuilder.module.ts index c985b7605..98680d344 100644 --- a/src/core/features/reportbuilder/reportbuilder.module.ts +++ b/src/core/features/reportbuilder/reportbuilder.module.ts @@ -15,7 +15,6 @@ import { APP_INITIALIZER, NgModule } from '@angular/core'; import { Routes } from '@angular/router'; import { CoreContentLinksDelegate } from '@features/contentlinks/services/contentlinks-delegate'; -import { CoreMainMenuRoutingModule } from '@features/mainmenu/mainmenu-routing.module'; import { CoreMainMenuTabRoutingModule } from '@features/mainmenu/mainmenu-tab-routing.module'; import { CoreUserDelegate } from '@features/user/services/user-delegate'; import { CoreReportBuilderLinkHandler } from './services/handlers/reportbuilder-link'; @@ -32,7 +31,6 @@ const routes: Routes = [ imports: [ CoreMainMenuTabRoutingModule.forChild(routes), ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/core/features/search/search-lazy.module.ts b/src/core/features/search/search-lazy.module.ts index bc07b9618..55d6d5862 100644 --- a/src/core/features/search/search-lazy.module.ts +++ b/src/core/features/search/search-lazy.module.ts @@ -14,7 +14,7 @@ import { CoreSharedModule } from '@/core/shared.module'; import { NgModule, Injector } from '@angular/core'; -import { RouterModule, Routes, ROUTES } from '@angular/router'; +import { Routes, ROUTES } from '@angular/router'; import { CoreSearchGlobalSearchPage } from './pages/global-search/global-search'; import { CoreSearchComponentsModule } from '@features/search/components/components.module'; import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module'; @@ -38,7 +38,6 @@ function buildRoutes(injector: Injector): Routes { CoreSearchComponentsModule, CoreMainMenuComponentsModule, ], - exports: [RouterModule], declarations: [ CoreSearchGlobalSearchPage, ], diff --git a/src/core/features/settings/settings-site-lazy.module.ts b/src/core/features/settings/settings-site-lazy.module.ts index 29bd49fec..82ccd0259 100644 --- a/src/core/features/settings/settings-site-lazy.module.ts +++ b/src/core/features/settings/settings-site-lazy.module.ts @@ -13,7 +13,7 @@ // limitations under the License. import { Injector, NgModule } from '@angular/core'; -import { RouterModule, ROUTES, Routes } from '@angular/router'; +import { ROUTES, Routes } from '@angular/router'; import { CoreSharedModule } from '@/core/shared.module'; import { conditionalRoutes } from '@/app/app-routing.module'; @@ -60,6 +60,5 @@ function buildRoutes(injector: Injector): Routes { imports: [ CoreSharedModule, ], - exports: [RouterModule], }) export class CoreettingsSiteLazyModule {} diff --git a/src/core/features/sitehome/sitehome-lazy.module.ts b/src/core/features/sitehome/sitehome-lazy.module.ts index 82ef0772b..ce14d218e 100644 --- a/src/core/features/sitehome/sitehome-lazy.module.ts +++ b/src/core/features/sitehome/sitehome-lazy.module.ts @@ -37,6 +37,5 @@ const routes: Routes = [ declarations: [ CoreSiteHomeIndexPage, ], - exports: [RouterModule], }) export class CoreSiteHomeLazyModule {} diff --git a/src/core/features/tag/tag-lazy.module.ts b/src/core/features/tag/tag-lazy.module.ts index a6f3b6c7a..12b563ee2 100644 --- a/src/core/features/tag/tag-lazy.module.ts +++ b/src/core/features/tag/tag-lazy.module.ts @@ -15,7 +15,7 @@ import { conditionalRoutes } from '@/app/app-routing.module'; import { CoreSharedModule } from '@/core/shared.module'; import { Injector, NgModule } from '@angular/core'; -import { Route, RouterModule, ROUTES, Routes } from '@angular/router'; +import { Route, ROUTES, Routes } from '@angular/router'; import { CoreMainMenuComponentsModule } from '@features/mainmenu/components/components.module'; import { buildTabMainRoutes } from '@features/mainmenu/mainmenu-tab-routing.module'; @@ -86,7 +86,6 @@ function buildRoutes(injector: Injector): Routes { CoreTagSearchPage, CoreTagIndexAreaPage, ], - exports: [RouterModule], providers: [ { provide: ROUTES, diff --git a/src/core/features/tag/tag.module.ts b/src/core/features/tag/tag.module.ts index 5bdc0dd31..b64146380 100644 --- a/src/core/features/tag/tag.module.ts +++ b/src/core/features/tag/tag.module.ts @@ -53,7 +53,6 @@ const routes: Routes = [ CoreMainMenuRoutingModule.forChild({ children: routes }), CoreTagComponentsModule, ], - exports: [CoreMainMenuRoutingModule], providers: [ { provide: APP_INITIALIZER, diff --git a/src/core/features/user/user-app-lazy.module.ts b/src/core/features/user/user-app-lazy.module.ts index d036817e8..e5126a789 100644 --- a/src/core/features/user/user-app-lazy.module.ts +++ b/src/core/features/user/user-app-lazy.module.ts @@ -32,6 +32,5 @@ const routes: Routes = [ declarations: [ CoreUserCompleteProfilePage, ], - exports: [RouterModule], }) export class CoreUserAppLazyModule {} diff --git a/src/core/features/user/user-profile-lazy.module.ts b/src/core/features/user/user-profile-lazy.module.ts index 926b471c7..5a184f5e8 100644 --- a/src/core/features/user/user-profile-lazy.module.ts +++ b/src/core/features/user/user-profile-lazy.module.ts @@ -33,6 +33,5 @@ const routes: Routes = [ declarations: [ CoreUserProfilePage, ], - exports: [RouterModule], }) export class CoreUserProfileLazyModule {}