mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
127 lines
3.3 KiB
TypeScript
127 lines
3.3 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { HomePage } from './home.page';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'home',
|
|
component: HomePage,
|
|
children: [
|
|
{
|
|
path: 'events',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/events/events.module').then(m => m.EventsPageModule)
|
|
},
|
|
{
|
|
path:':eventId',
|
|
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule)
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: 'attachments',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
|
},
|
|
{
|
|
path:':eventId',
|
|
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: 'attendees',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/events/attendees/attendees.module').then(m => m.AttendeesPageModule)
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: 'login',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
|
|
},
|
|
|
|
]
|
|
},
|
|
{
|
|
path: 'agenda',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'gabinete-digital',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/gabinete-digital.module').then(m => m.GabineteDigitalPageModule)
|
|
},
|
|
{
|
|
path:'expediente',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
|
},
|
|
{
|
|
path:':SerialNumber',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module').then(m => m.ExpedienteDetailPageModule)
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'search',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'expediente',
|
|
children: [
|
|
{
|
|
path:'',
|
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
|
}
|
|
]
|
|
},
|
|
/* PROVISORIO */
|
|
/* {
|
|
path: 'view-event',
|
|
loadChildren: ()=> import('../pages/view-event/view-event.module').then(m => m.ViewEventPageModule)
|
|
}, */
|
|
]
|
|
},
|
|
{
|
|
path: '',
|
|
redirectTo: 'home/events',
|
|
pathMatch: 'full'
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class HomePageRoutingModule {}
|