From 9c426777edab47e9dee78cf1fd17c83c5a21cc1c Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Wed, 26 Feb 2020 15:45:19 +0300 Subject: [PATCH] feat: change lazy abp modules references #2345 --- .../app/angular/src/app/app-routing.module.ts | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/templates/app/angular/src/app/app-routing.module.ts b/templates/app/angular/src/app/app-routing.module.ts index bd2debf0cb..91974e01ce 100644 --- a/templates/app/angular/src/app/app-routing.module.ts +++ b/templates/app/angular/src/app/app-routing.module.ts @@ -8,32 +8,30 @@ const routes: Routes = [ loadChildren: () => import('./home/home.module').then(m => m.HomeModule), data: { routes: { - name: '::Menu:Home', - } as ABP.Route, - }, + name: '::Menu:Home' + } as ABP.Route + } }, { path: 'account', - loadChildren: () => import('./lazy-libs/account-wrapper.module').then(m => m.AccountWrapperModule), + loadChildren: () => import('@abp/ng.account').then(m => m.AccountModule) }, { path: 'identity', - loadChildren: () => import('./lazy-libs/identity-wrapper.module').then(m => m.IdentityWrapperModule), + loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule) }, { path: 'tenant-management', - loadChildren: () => - import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule), + loadChildren: () => import('@abp/ng.tenant-management').then(m => m.TenantManagementModule) }, { path: 'setting-management', - loadChildren: () => - import('./lazy-libs/setting-management-wrapper.module').then(m => m.SettingManagementWrapperModule), - }, + loadChildren: () => import('@abp/ng.setting-management').then(m => m.SettingManagementModule) + } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], - exports: [RouterModule], + exports: [RouterModule] }) export class AppRoutingModule {}