2025-11-11 10:52:30 +07:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import { MainDashboardContentComponent } from '../../content/main-dashboard-content/main-dashboard-content.component';
|
2025-11-16 22:51:03 +07:00
|
|
|
import { MainReportComponent } from '../../component/main-report/main-report.component';
|
2025-11-11 10:52:30 +07:00
|
|
|
// import { MainReportComponent } from '../../component/main-report/main-report.component';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{ path: 'dashboard', component: MainDashboardContentComponent },
|
2025-11-16 22:51:03 +07:00
|
|
|
{ path: 'report', component: MainReportComponent },
|
2025-11-11 10:52:30 +07:00
|
|
|
// 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 { }
|