refactor: don't export all modules everywhere

This commit is contained in:
Dmitry Nehaychik 2019-06-12 10:38:33 +03:00
parent df489ad17e
commit c31ff67052
17 changed files with 218 additions and 263 deletions

View file

@ -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({