dashboard
This commit is contained in:
@@ -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),
|
||||
},
|
||||
];
|
||||
];
|
||||
Reference in New Issue
Block a user