1- import { ApplicationConfig , importProvidersFrom } from '@angular/core' ;
1+ import { ApplicationConfig } from '@angular/core' ;
22import { provideRouter } from '@angular/router' ;
33import { provideAnimations } from '@angular/platform-browser/animations' ;
44
@@ -14,9 +14,8 @@ import { provideAccountConfig } from '@abp/ng.account/config';
1414import { provideIdentityConfig } from '@abp/ng.identity/config' ;
1515import { provideTenantManagementConfig } from '@abp/ng.tenant-management/config' ;
1616import { provideFeatureManagementConfig } from '@abp/ng.feature-management' ;
17- import { ThemeLeptonXModule } from '@abp/ng.theme.lepton-x' ;
18- import { SideMenuLayoutModule } from '@abp/ng.theme.lepton-x/layouts' ;
19- import { AccountLayoutModule } from '@abp/ng.theme.lepton-x/account' ;
17+ import { provideThemeLeptonX } from '@abp/ng.theme.lepton-x' ;
18+ import { provideSideMenuLayout } from '@abp/ng.theme.lepton-x/layouts' ;
2019import { provideLogo , withEnvironmentOptions } from '@volo/ngx-lepton-x.core' ;
2120
2221export const appConfig : ApplicationConfig = {
@@ -29,6 +28,8 @@ export const appConfig: ApplicationConfig = {
2928 registerLocaleFn : registerLocale ( ) ,
3029 } )
3130 ) ,
31+ provideThemeLeptonX ( ) ,
32+ provideSideMenuLayout ( ) ,
3233 provideAbpOAuth ( ) ,
3334 provideAbpThemeShared ( ) ,
3435 provideSettingManagementConfig ( ) ,
@@ -37,12 +38,6 @@ export const appConfig: ApplicationConfig = {
3738 provideTenantManagementConfig ( ) ,
3839 provideFeatureManagementConfig ( ) ,
3940 provideAnimations ( ) ,
40- provideAbpCore ( ) ,
4141 provideLogo ( withEnvironmentOptions ( environment ) ) ,
42- importProvidersFrom ( [
43- ThemeLeptonXModule . forRoot ( ) ,
44- SideMenuLayoutModule . forRoot ( ) ,
45- AccountLayoutModule . forRoot ( ) ,
46- ] ) ,
4742 ] ,
4843} ;
0 commit comments