feat: add forChild and forLazy static methods

pull/4377/head
Arman Ozak 5 years ago
parent 0f48f6ce85
commit 41872d8480

@ -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<SettingManagementModule> {
return {
ngModule: SettingManagementModule,
providers: [],
};
}
static forLazy(): NgModuleFactory<SettingManagementModule> {
return new LazyModuleFactory(SettingManagementModule.forChild());
}
}

Loading…
Cancel
Save