fix SSR issue for notify dashboard

This commit is contained in:
FrancescoMolinaro
2024-01-12 12:06:06 +01:00
parent a03b7e4628
commit 1693d49e27

View File

@@ -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}))
};
}
}