Browse Source

feat: use forLazy static method of lazy modules

pull/4377/head
Arman Ozak 6 years ago
parent
commit
3c87550ef9
  1. 9
      npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts

9
npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts

@ -15,21 +15,22 @@ const routes: Routes = [
}, },
{ {
path: 'account', path: 'account',
loadChildren: () => import('./lazy-libs/account-wrapper.module').then(m => m.AccountWrapperModule), loadChildren: () =>
import('@abp/ng.account').then(m => m.AccountModule.forLazy({ redirectUrl: '/' })),
}, },
{ {
path: 'identity', path: 'identity',
loadChildren: () => import('./lazy-libs/identity-wrapper.module').then(m => m.IdentityWrapperModule), loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),
}, },
{ {
path: 'tenant-management', path: 'tenant-management',
loadChildren: () => loadChildren: () =>
import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule), import('@abp/ng.tenant-management').then(m => m.TenantManagementModule.forLazy()),
}, },
{ {
path: 'setting-management', path: 'setting-management',
loadChildren: () => loadChildren: () =>
import('./lazy-libs/setting-management-wrapper.module').then(m => m.SettingManagementWrapperModule), import('@abp/ng.setting-management').then(m => m.SettingManagementModule.forLazy()),
}, },
]; ];

Loading…
Cancel
Save