import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
import { LoginPage } from './login/login.page';


const routes: Routes = [

  {
    path: 'login',
    component: LoginPage
  },
  {
    path: 'tabs',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'view-evento',
    loadChildren: () => import('./view-evento/view-evento.module').then( m => m.ViewEventoPageModule)
  },
  {
    path: 'galeriamodal',
    loadChildren: () => import('./galeriamodal/galeriamodal.module').then( m => m.GaleriamodalPageModule)
  },
  {
    path:'',
    redirectTo: 'tabs',
    pathMatch: 'full'
  },



 
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
