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

54 lines
1.4 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 { 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: DashboardComponent,
}, {
path: 'ui-features',
loadChildren: './ui-features/ui-features.module#UiFeaturesModule',
}, {
path: 'components',
2017-05-19 14:40:20 +03:00
loadChildren: './components/components.module#ComponentsModule',
}, {
path: 'maps',
loadChildren: './maps/maps.module#MapsModule',
}, {
path: 'charts',
2017-05-11 18:31:55 +03:00
loadChildren: './charts/charts.module#ChartsModule',
}, {
path: 'editors',
loadChildren: './editors/editors.module#EditorsModule',
}, {
path: 'forms',
loadChildren: './forms/forms.module#FormsModule',
2017-05-23 17:45:35 +03:00
}, {
path: 'tables',
loadChildren: './tables/tables.module#TablesModule',
}, {
path: 'miscellaneous',
loadChildren: './miscellaneous/miscellaneous.module#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 {
}