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';
|
2018-05-07 05:07:14 -04:00
|
|
|
import { NotFoundComponent } from './miscellaneous/not-found/not-found.component';
|
2017-04-13 14:24:23 +03:00
|
|
|
|
2017-05-05 15:49:52 +03:00
|
|
|
const routes: Routes = [{
|
|
|
|
|
path: '',
|
|
|
|
|
component: PagesComponent,
|
|
|
|
|
children: [{
|
|
|
|
|
path: 'dashboard',
|
|
|
|
|
component: DashboardComponent,
|
|
|
|
|
}, {
|
|
|
|
|
path: 'ui-features',
|
2017-05-06 14:52:41 +03:00
|
|
|
loadChildren: './ui-features/ui-features.module#UiFeaturesModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'components',
|
2017-05-19 14:40:20 +03:00
|
|
|
loadChildren: './components/components.module#ComponentsModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'maps',
|
2017-05-06 20:02:26 +03:00
|
|
|
loadChildren: './maps/maps.module#MapsModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'charts',
|
2017-05-11 18:31:55 +03:00
|
|
|
loadChildren: './charts/charts.module#ChartsModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'editors',
|
2017-05-06 14:52:41 +03:00
|
|
|
loadChildren: './editors/editors.module#EditorsModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'forms',
|
2017-05-06 14:52:41 +03:00
|
|
|
loadChildren: './forms/forms.module#FormsModule',
|
2017-05-23 17:45:35 +03:00
|
|
|
}, {
|
|
|
|
|
path: 'tables',
|
|
|
|
|
loadChildren: './tables/tables.module#TablesModule',
|
2018-05-07 05:07:14 -04:00
|
|
|
}, {
|
|
|
|
|
path: 'miscellaneous',
|
|
|
|
|
loadChildren: './miscellaneous/miscellaneous.module#MiscellaneousModule',
|
2017-05-05 15:49:52 +03:00
|
|
|
}, {
|
2017-04-13 14:24:23 +03:00
|
|
|
path: '',
|
2017-05-05 15:49:52 +03:00
|
|
|
redirectTo: 'dashboard',
|
|
|
|
|
pathMatch: 'full',
|
2018-05-07 05:07:14 -04:00
|
|
|
}, {
|
|
|
|
|
path: '**',
|
|
|
|
|
component: NotFoundComponent,
|
2017-05-05 15:49:52 +03:00
|
|
|
}],
|
|
|
|
|
}];
|
2017-04-13 14:24:23 +03:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
2017-04-21 17:23:44 +03:00
|
|
|
exports: [RouterModule],
|
2017-04-13 14:24:23 +03:00
|
|
|
})
|
|
|
|
|
export class PagesRoutingModule {
|
|
|
|
|
}
|