diff --git a/npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts b/npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts index 091a648524..fe2c0fdacc 100644 --- a/npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts +++ b/npm/ng-packs/packages/setting-management/src/lib/setting-management.module.ts @@ -1,9 +1,9 @@ -import { CoreModule } from '@abp/ng.core'; +import { CoreModule, LazyModuleFactory } from '@abp/ng.core'; import { ThemeSharedModule } from '@abp/ng.theme.shared'; -import { NgModule } from '@angular/core'; -import { SettingManagementRoutingModule } from './setting-management-routing.module'; -import { SettingManagementComponent } from './components/setting-management.component'; +import { ModuleWithProviders, NgModule, NgModuleFactory } from '@angular/core'; import { NgxsModule } from '@ngxs/store'; +import { SettingManagementComponent } from './components/setting-management.component'; +import { SettingManagementRoutingModule } from './setting-management-routing.module'; import { SettingManagementState } from './states/setting-management.state'; @NgModule({ @@ -16,4 +16,15 @@ import { SettingManagementState } from './states/setting-management.state'; NgxsModule.forFeature([SettingManagementState]), ], }) -export class SettingManagementModule {} +export class SettingManagementModule { + static forChild(): ModuleWithProviders { + return { + ngModule: SettingManagementModule, + providers: [], + }; + } + + static forLazy(): NgModuleFactory { + return new LazyModuleFactory(SettingManagementModule.forChild()); + } +}