Files
doneit-web/src/app/home/home-routing.module.ts
T

81 lines
2.0 KiB
TypeScript
Raw Normal View History

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