mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
1-Improved project structure. 2-Added new pages. 3-Prepared the environment to consume APIS. 4-Added Axios to the project. 5-Added get methods.
This commit is contained in:
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { HomePage } from './home.page';
|
||||
import { EventsPage } from '../pages/events/events.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
@@ -9,41 +10,58 @@ const routes: Routes = [
|
||||
component: HomePage,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: ()=> import('../pages/feed/feed.module').then(m => m.FeedPageModule)
|
||||
},
|
||||
{
|
||||
path: 'feed',
|
||||
loadChildren: ()=> import('../pages/feed/feed.module').then(m => m.FeedPageModule)
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
||||
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: 'agenda',
|
||||
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
||||
},
|
||||
{
|
||||
path: 'gabinete-digital',
|
||||
loadChildren: ()=> import('../pages/gabinete-digital/gabinete-digital.module').then(m => m.GabineteDigitalPageModule)
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/agenda/agenda.module').then(m => m.AgendaPageModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'gabinete-digital-menu',
|
||||
loadChildren: ()=> import('../pages/gabinete-digital-menu/gabinete-digital-menu.module').then(m => m.GabineteDigitalMenuPageModule)
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/gabinete-digital-menu/gabinete-digital-menu.module').then(m => m.GabineteDigitalMenuPageModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
/* PROVISORIO */
|
||||
{
|
||||
/* {
|
||||
path: 'view-event',
|
||||
loadChildren: ()=> import('../pages/view-event/view-event.module').then(m => m.ViewEventPageModule)
|
||||
},
|
||||
}, */
|
||||
]
|
||||
}/* ,
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'home/feed',
|
||||
redirectTo: 'home/events',
|
||||
pathMatch: 'full'
|
||||
} */
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
Reference in New Issue
Block a user