ngx-admin/src/app/pages/pages-routing.module.ts

74 lines
2.1 KiB
TypeScript
Raw Normal View History

2017-04-13 14:24:23 +03:00
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { PagesComponent } from './pages.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { ECommerceComponent } from './e-commerce/e-commerce.component';
import { NotFoundComponent } from './miscellaneous/not-found/not-found.component';
2017-04-13 14:24:23 +03:00
const routes: Routes = [{
path: '',
component: PagesComponent,
children: [{
path: 'dashboard',
component: ECommerceComponent,
}, {
path: 'iot-dashboard',
component: DashboardComponent,
}, {
path: 'ui-features',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./ui-features/ui-features.module')
.then(m => m.UiFeaturesModule),
}, {
path: 'modal-overlays',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./modal-overlays/modal-overlays.module')
.then(m => m.ModalOverlaysModule),
}, {
path: 'extra-components',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./extra-components/extra-components.module')
.then(m => m.ExtraComponentsModule),
}, {
path: 'bootstrap',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./bootstrap/bootstrap.module')
.then(m => m.BootstrapModule),
}, {
path: 'maps',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./maps/maps.module')
.then(m => m.MapsModule),
}, {
path: 'charts',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./charts/charts.module')
.then(m => m.ChartsModule),
}, {
path: 'editors',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./editors/editors.module')
.then(m => m.EditorsModule),
}, {
path: 'forms',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./forms/forms.module')
.then(m => m.FormsModule),
2017-05-23 17:45:35 +03:00
}, {
path: 'tables',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./tables/tables.module')
.then(m => m.TablesModule),
}, {
path: 'miscellaneous',
2019-05-28 23:25:55 +03:00
loadChildren: () => import('./miscellaneous/miscellaneous.module')
.then(m => m.MiscellaneousModule),
}, {
2017-04-13 14:24:23 +03:00
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
}, {
path: '**',
component: NotFoundComponent,
}],
}];
2017-04-13 14:24:23 +03:00
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
2017-04-13 14:24:23 +03:00
})
export class PagesRoutingModule {
}