30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
|
|
import { NgModule } from '@angular/core';
|
||
|
|
import { RouterModule, Routes } from '@angular/router';
|
||
|
|
import { MainDashboardContentComponent } from '../../content/main-dashboard-content/main-dashboard-content.component';
|
||
|
|
import { MainReportComponent } from '../../component/main-report/main-report.component';
|
||
|
|
// import { MainReportComponent } from '../../component/main-report/main-report.component';
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
const routes: Routes = [
|
||
|
|
{ path: 'dashboard', component: MainDashboardContentComponent },
|
||
|
|
{ path: 'report', component: MainReportComponent },
|
||
|
|
// children: [
|
||
|
|
// {
|
||
|
|
// path: 'dashboard',
|
||
|
|
// // loadChildren: () => import('./controls/profile-control/profile-control.module').then(m => m.ProfileControlModule)
|
||
|
|
// },
|
||
|
|
// { path: 'report', component: MainReportComponent },
|
||
|
|
// { path: '', redirectTo: 'profile', pathMatch: 'full' }
|
||
|
|
// ]
|
||
|
|
|
||
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
||
|
|
{ path: '**', redirectTo: 'dashboard' }
|
||
|
|
];
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [RouterModule.forChild(routes)],
|
||
|
|
exports: [RouterModule]
|
||
|
|
})
|
||
|
|
export class MainControlRoutingModule { }
|