app-routing.module.ts 542 B

1234567891011121314151617181920
  1. import { NgModule } from '@angular/core';
  2. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  3. const routes: Routes = [
  4. {
  5. path: '',
  6. loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  7. },
  8. {
  9. path: 'calendar',
  10. loadChildren: () => import('./calendar/calendar.module').then( m => m.CalendarPageModule)
  11. }
  12. ];
  13. @NgModule({
  14. imports: [
  15. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  16. ],
  17. exports: [RouterModule]
  18. })
  19. export class AppRoutingModule {}