dashboard

This commit is contained in:
2025-12-11 17:35:10 +01:00
parent d5d82f60a6
commit c232f2a867
10 changed files with 679 additions and 34 deletions

View File

@@ -1,23 +1,26 @@
import {Routes} from '@angular/router';
import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: '/dashboard'
},
{
path: 'dashboard',
loadComponent: () => import('./components/pages/dashboard/dashboard').then(x => x.Dashboard),
loadComponent: () =>
import('./components/header/header').then(m => m.Header),
children: [
{
path: 'test',
loadComponent: () => import('./components/pages/test/test').then(x => x.Test)
}
]
path: 'dashboard',
loadComponent: () =>
import('./components/pages/dashboard/dashboard').then(m => m.Dashboard),
},
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
},
],
},
{
path: 'login',
loadComponent: () => import('./components/pages/login/login').then(x => x.Login),
loadComponent: () =>
import('./components/pages/login/login').then(m => m.Login),
},
];
];