Skip to content

Commit

Permalink
feat: change lazy abp modules references
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-erim committed Feb 26, 2020
1 parent 2c024b7 commit 9c42677
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions templates/app/angular/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

0 comments on commit 9c42677

Please sign in to comment.