31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { RouterModule } from '@angular/router';
|
|
import AppComponent from '../../components/view/view.module';
|
|
|
|
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [
|
|
CommonModule,
|
|
RouterModule.forChild([
|
|
{
|
|
path: '',
|
|
component: AppComponent,
|
|
outlet: 'primary',
|
|
children: [
|
|
{ path: 'calendar', loadChildren: () => import('./calendar/calendar.module').then(m => m.CalendarModule) },
|
|
{ path: 'users', loadChildren: () => import('./users/users.module').then(m => m.UsersModule) },
|
|
{ path: 'permissions', loadChildren: () => import('./permissions/permissions.module').then(m => m.PermissionsModule) },
|
|
{ path: 'reports', loadChildren: () => import('./reports/reports.module').then(m => m.ReportsModule) },
|
|
{ path: 'majors', loadChildren: () => import('./majors/majors.module').then(m => m.MajorsModule) },
|
|
{ path: 'volunteers', loadChildren: () => import('./volunteer/volunteer.module').then(m => m.VolunteerModule) },
|
|
{ path: 'chat', loadChildren: () => import('./chat/chat.module').then(m => m.ChatModule) },
|
|
]
|
|
}
|
|
])
|
|
]
|
|
})
|
|
export class PanelModule { }
|