diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.module.ts b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.module.ts index 9c4daf981b..c75ab053c7 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.module.ts +++ b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.module.ts @@ -18,6 +18,9 @@ import { import { AdminNotifyMessagesService } from './services/admin-notify-messages.service'; +const ENTRY_COMPONENTS = [ + AdminNotifySearchResultComponent +]; @NgModule({ imports: [ CommonModule, @@ -32,14 +35,19 @@ import { AdminNotifyMessagesService } from './services/admin-notify-messages.ser DatePipe ], declarations: [ + ...ENTRY_COMPONENTS, AdminNotifyDashboardComponent, AdminNotifyMetricsComponent, AdminNotifyIncomingComponent, AdminNotifyOutgoingComponent, - AdminNotifySearchResultComponent, AdminNotifyDetailModalComponent ] }) export class AdminNotifyDashboardModule { - + static withEntryComponents() { + return { + ngModule: AdminNotifyDashboardModule, + providers: ENTRY_COMPONENTS.map((component) => ({provide: component})) + }; + } }