2020-08-05 15:39:16 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { HomePage } from './home.page';
|
2020-08-18 23:32:12 +01:00
|
|
|
import { EventsPage } from '../pages/events/events.page';
|
2020-08-05 15:39:16 +01:00
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: 'home',
|
|
|
|
|
component: HomePage,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-08-18 23:32:12 +01:00
|
|
|
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)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
]
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'agenda',
|
2020-08-18 23:32:12 +01:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-18 23:32:12 +01:00
|
|
|
path: 'gabinete-digital-menu',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/gabinete-digital-menu/gabinete-digital-menu.module').then(m => m.GabineteDigitalMenuPageModule)
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-08-05 15:39:16 +01:00
|
|
|
},
|
2020-08-17 18:11:26 +01:00
|
|
|
{
|
2020-08-18 23:32:12 +01:00
|
|
|
path: 'search',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-08-17 18:11:26 +01:00
|
|
|
},
|
2020-08-19 14:21:42 +01:00
|
|
|
{
|
|
|
|
|
path: 'view-event',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path:'',
|
|
|
|
|
loadChildren: ()=> import('../pages/view-event/view-event.module').then(m => m.ViewEventPageModule)
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-08-11 04:11:42 +01:00
|
|
|
/* PROVISORIO */
|
2020-08-18 23:32:12 +01:00
|
|
|
/* {
|
2020-08-11 04:11:42 +01:00
|
|
|
path: 'view-event',
|
|
|
|
|
loadChildren: ()=> import('../pages/view-event/view-event.module').then(m => m.ViewEventPageModule)
|
2020-08-18 23:32:12 +01:00
|
|
|
}, */
|
2020-08-05 15:39:16 +01:00
|
|
|
]
|
2020-08-18 23:32:12 +01:00
|
|
|
},
|
2020-08-05 15:39:16 +01:00
|
|
|
{
|
|
|
|
|
path: '',
|
2020-08-18 23:32:12 +01:00
|
|
|
redirectTo: 'home/events',
|
2020-08-05 15:39:16 +01:00
|
|
|
pathMatch: 'full'
|
2020-08-18 23:32:12 +01:00
|
|
|
}
|
2020-08-05 15:39:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
|
exports: [RouterModule],
|
|
|
|
|
})
|
|
|
|
|
export class HomePageRoutingModule {}
|