mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 08:50:13 +01:00
refactor: don't export all modules everywhere
This commit is contained in:
parent
df489ad17e
commit
c31ff67052
17 changed files with 218 additions and 263 deletions
|
|
@ -23,60 +23,61 @@ const routes: Routes = [{
|
|||
loadChildren: () => import('./layout/layout.module')
|
||||
.then(m => m.LayoutModule),
|
||||
},
|
||||
{
|
||||
path: 'forms',
|
||||
loadChildren: () => import('./forms/forms.module')
|
||||
.then(m => m.FormsModule),
|
||||
},
|
||||
{
|
||||
path: 'ui-features',
|
||||
loadChildren: () => import('./ui-features/ui-features.module')
|
||||
.then(m => m.UiFeaturesModule),
|
||||
},
|
||||
{
|
||||
path: 'modal-overlays',
|
||||
loadChildren: () => import('./modal-overlays/modal-overlays.module')
|
||||
.then(m => m.ModalOverlaysModule),
|
||||
},
|
||||
{
|
||||
path: 'extra-components',
|
||||
loadChildren: () => import('./extra-components/extra-components.module')
|
||||
.then(m => m.ExtraComponentsModule),
|
||||
},
|
||||
{
|
||||
path: 'maps',
|
||||
loadChildren: () => import('./maps/maps.module')
|
||||
.then(m => m.MapsModule),
|
||||
},
|
||||
{
|
||||
path: 'charts',
|
||||
loadChildren: () => import('./charts/charts.module')
|
||||
.then(m => m.ChartsModule),
|
||||
},
|
||||
{
|
||||
path: 'editors',
|
||||
loadChildren: () => import('./editors/editors.module')
|
||||
.then(m => m.EditorsModule),
|
||||
},
|
||||
{
|
||||
path: 'tables',
|
||||
loadChildren: () => import('./tables/tables.module')
|
||||
.then(m => m.TablesModule),
|
||||
},
|
||||
{
|
||||
path: 'miscellaneous',
|
||||
loadChildren: () => import('./miscellaneous/miscellaneous.module')
|
||||
.then(m => m.MiscellaneousModule),
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'dashboard',
|
||||
pathMatch: 'full',
|
||||
},
|
||||
// {
|
||||
// path: 'forms',
|
||||
// loadChildren: () => import('./forms/forms.module')
|
||||
// .then(m => m.FormsModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'ui-features',
|
||||
// loadChildren: () => import('./ui-features/ui-features.module')
|
||||
// .then(m => m.UiFeaturesModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'modal-overlays',
|
||||
// loadChildren: () => import('./modal-overlays/modal-overlays.module')
|
||||
// .then(m => m.ModalOverlaysModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'extra-components',
|
||||
// loadChildren: () => import('./extra-components/extra-components.module')
|
||||
// .then(m => m.ExtraComponentsModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'maps',
|
||||
// loadChildren: () => import('./maps/maps.module')
|
||||
// .then(m => m.MapsModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'charts',
|
||||
// loadChildren: () => import('./charts/charts.module')
|
||||
// .then(m => m.ChartsModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'editors',
|
||||
// loadChildren: () => import('./editors/editors.module')
|
||||
// .then(m => m.EditorsModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'tables',
|
||||
// loadChildren: () => import('./tables/tables.module')
|
||||
// .then(m => m.TablesModule),
|
||||
// },
|
||||
// {
|
||||
// path: 'miscellaneous',
|
||||
// loadChildren: () => import('./miscellaneous/miscellaneous.module')
|
||||
// .then(m => m.MiscellaneousModule),
|
||||
// },
|
||||
// {
|
||||
// path: '',
|
||||
// redirectTo: 'dashboard',
|
||||
// pathMatch: 'full',
|
||||
// },
|
||||
{
|
||||
path: '**',
|
||||
component: NotFoundComponent,
|
||||
}],
|
||||
},
|
||||
],
|
||||
}];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue