mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 00:40:12 +01:00
24 lines
566 B
TypeScript
24 lines
566 B
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: '', redirectTo: 'dashboard', pathMatch: 'full'},
|
||
|
|
{path: 'dashboard', component: DashboardComponent}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [RouterModule.forChild(routes)],
|
||
|
|
exports: [RouterModule]
|
||
|
|
})
|
||
|
|
export class PagesRoutingModule {
|
||
|
|
}
|