36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import {RouterModule, Routes} from '@angular/router';
|
|
import {AdminComponent} from './admin.component/admin.component';
|
|
|
|
const ADMIN_ROUTES: Routes = [
|
|
{
|
|
path: '',
|
|
component: AdminComponent,
|
|
data:{breadcrumb: 'Admin'},
|
|
children: [
|
|
{ path: '', pathMatch: 'full', redirectTo: 'admin-welcome' },
|
|
{
|
|
path: 'admin-welcome',
|
|
loadComponent: () => import('../admin-module/admin-welcome.component/admin-welcome.component').then((c) => c.AdminWelcomeComponent),
|
|
data:{breadcrumb: 'Welcome'}
|
|
},
|
|
{
|
|
path: 'settings',
|
|
loadComponent: () => import('../admin-module/settings.component/settings.component').then((c) => c.SettingsComponent),
|
|
data:{breadcrumb: 'Settings'}
|
|
},
|
|
{
|
|
path: 'system',
|
|
loadComponent: () => import('../admin-module/system.component/system.component').then((c) => c.SystemComponent),
|
|
data:{breadcrumb: 'System'}
|
|
},
|
|
{
|
|
path: 'users',
|
|
loadComponent: () => import('../admin-module/users.component/users.component').then((c) => c.UsersComponent),
|
|
data:{breadcrumb: 'Users'}
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
export const adminRouting = RouterModule.forChild(ADMIN_ROUTES);
|