mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 08:50:13 +01:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { RouterModule, Routes } from '@angular/router';
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { PagesComponent } from './pages.component';
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
|
import { ComponentsComponent } from './components/components.component';
|
|
import { MapsComponent } from './maps/maps.component';
|
|
import { ChartsComponent } from './charts/charts.component';
|
|
|
|
const routes: Routes = [{
|
|
path: '',
|
|
component: PagesComponent,
|
|
children: [{
|
|
path: 'dashboard',
|
|
component: DashboardComponent,
|
|
}, {
|
|
path: 'ui-features',
|
|
loadChildren: './ui-features/ui-features.module#UiFeaturesModule',
|
|
}, {
|
|
path: 'components',
|
|
component: ComponentsComponent,
|
|
}, {
|
|
path: 'maps',
|
|
component: MapsComponent,
|
|
}, {
|
|
path: 'charts',
|
|
component: ChartsComponent,
|
|
}, {
|
|
path: 'editors',
|
|
loadChildren: './editors/editors.module#EditorsModule',
|
|
}, {
|
|
path: 'forms',
|
|
loadChildren: './forms/forms.module#FormsModule',
|
|
}, {
|
|
path: '',
|
|
redirectTo: 'dashboard',
|
|
pathMatch: 'full',
|
|
}],
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class PagesRoutingModule {
|
|
}
|