refactor: remove DynamicLayoutComponent from app-routing.module

pull/4651/head
mehmet-erim 5 years ago
parent a4869cc0f9
commit d904e8df6c

@ -5,33 +5,27 @@ import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [ const routes: Routes = [
{ {
path: '', path: '',
component: DynamicLayoutComponent, pathMatch: 'full',
children: [ loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
{ },
path: '', {
pathMatch: 'full', path: 'account',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule), loadChildren: () =>
}, import('@abp/ng.account').then(m => m.AccountModule.forLazy({ redirectUrl: '/' })),
{ },
path: 'account', {
loadChildren: () => path: 'identity',
import('@abp/ng.account').then(m => m.AccountModule.forLazy({ redirectUrl: '/' })), loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),
}, },
{ {
path: 'identity', path: 'tenant-management',
loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()), loadChildren: () =>
}, import('@abp/ng.tenant-management').then(m => m.TenantManagementModule.forLazy()),
{ },
path: 'tenant-management', {
loadChildren: () => path: 'setting-management',
import('@abp/ng.tenant-management').then(m => m.TenantManagementModule.forLazy()), loadChildren: () =>
}, import('@abp/ng.setting-management').then(m => m.SettingManagementModule.forLazy()),
{
path: 'setting-management',
loadChildren: () =>
import('@abp/ng.setting-management').then(m => m.SettingManagementModule.forLazy()),
},
],
}, },
]; ];

Loading…
Cancel
Save