mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02: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';
|
|
|
|
const routes: Routes = [{
|
|
path: '',
|
|
component: PagesComponent,
|
|
children: [{
|
|
path: 'dashboard',
|
|
component: DashboardComponent,
|
|
}, {
|
|
path: 'ui-features',
|
|
loadChildren: './ui-features/ui-features.module#UiFeaturesModule',
|
|
}, {
|
|
path: 'components',
|
|
loadChildren: './components/components.module#ComponentsModule',
|
|
}, {
|
|
path: 'maps',
|
|
loadChildren: './maps/maps.module#MapsModule',
|
|
}, {
|
|
path: 'charts',
|
|
loadChildren: './charts/charts.module#ChartsModule',
|
|
}, {
|
|
path: 'editors',
|
|
loadChildren: './editors/editors.module#EditorsModule',
|
|
}, {
|
|
path: 'forms',
|
|
loadChildren: './forms/forms.module#FormsModule',
|
|
}, {
|
|
path: 'tables',
|
|
loadChildren: './tables/tables.module#TablesModule',
|
|
}, {
|
|
path: '',
|
|
redirectTo: 'dashboard',
|
|
pathMatch: 'full',
|
|
}],
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class PagesRoutingModule {
|
|
}
|