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';
|
2017-04-18 15:27:37 +03:00
|
|
|
import { ComponentsComponent } from './components/components.component';
|
|
|
|
|
import { MapsComponent } from './maps/maps.component';
|
2017-04-29 13:40:27 +03:00
|
|
|
import { NgxChartsComponent } from './charts/charts.component';
|
|
|
|
|
import { NgxEditorsComponent } from './editors/editors.component';
|
2017-04-13 14:24:23 +03:00
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: PagesComponent,
|
|
|
|
|
children: [
|
2017-04-21 17:23:44 +03:00
|
|
|
{ path: 'dashboard', component: DashboardComponent },
|
2017-04-29 18:53:19 +03:00
|
|
|
{ path: 'ui-features', loadChildren: './ui-features/ui-features.module#NgxUiFeaturesModule' },
|
2017-04-21 17:23:44 +03:00
|
|
|
{ path: 'components', component: ComponentsComponent },
|
|
|
|
|
{ path: 'maps', component: MapsComponent },
|
2017-04-29 13:40:27 +03:00
|
|
|
{ path: 'charts', component: NgxChartsComponent },
|
|
|
|
|
{ path: 'editors', loadChildren: './editors/editors.module#NgxEditorsModule' },
|
2017-04-21 17:23:44 +03:00
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
|
|
],
|
|
|
|
|
},
|
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 {
|
|
|
|
|
}
|