27 lines
712 B
TypeScript
27 lines
712 B
TypeScript
|
|
import { Routes } from '@angular/router';
|
||
|
|
import { DashboardComponent } from './pages/dashboard/dashboard.component';
|
||
|
|
import { LayoutsComponent } from './pages/dashboard/layouts/layouts.component';
|
||
|
|
import { GraphComponent } from './pages/dashboard/page/graph/graph.component';
|
||
|
|
|
||
|
|
export const routes: Routes = [
|
||
|
|
{
|
||
|
|
path: '',
|
||
|
|
redirectTo:'dashboard',
|
||
|
|
pathMatch:'full'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '',
|
||
|
|
component: LayoutsComponent,
|
||
|
|
children:[
|
||
|
|
{
|
||
|
|
path: 'dashboard',
|
||
|
|
component: DashboardComponent,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'graph',
|
||
|
|
component: GraphComponent
|
||
|
|
},
|
||
|
|
]
|
||
|
|
}
|
||
|
|
];
|