26 lines
701 B
TypeScript
26 lines
701 B
TypeScript
import { Routes } from '@angular/router';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
path: '',
|
|
loadComponent: () =>
|
|
import('./components/header/header').then(m => m.Header),
|
|
children: [
|
|
{
|
|
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(m => m.Login),
|
|
},
|
|
]; |