app-routing.module.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: 'tab4',
  10. loadChildren: () => import('./tab4/tab4.module').then( m => m.Tab4PageModule)
  11. },
  12. {
  13. path: 'dao-chu',
  14. loadChildren: () => import('./dao-chu/dao-chu.module').then( m => m.DaoChuPageModule)
  15. },
  16. {
  17. path: 'tab2-day',
  18. loadChildren: () => import('./tab2-day/tab2-day.module').then( m => m.Tab2DayPageModule)
  19. },
  20. {
  21. path: 'tab2-week',
  22. loadChildren: () => import('./tab2-week/tab2-week.module').then( m => m.Tab2WeekPageModule)
  23. },
  24. {
  25. path: 'tab2-month',
  26. loadChildren: () => import('./tab2-month/tab2-month.module').then( m => m.Tab2MonthPageModule)
  27. },
  28. {
  29. path: 'tab2-day1',
  30. loadChildren: () => import('./tab2-day1/tab2-day1.module').then( m => m.Tab2Day1PageModule)
  31. },
  32. {
  33. path: 'tab3-add',
  34. loadChildren: () => import('./tab3-add/tab3-add.module').then( m => m.Tab3AddPageModule)
  35. },
  36. ];
  37. @NgModule({
  38. imports: [
  39. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  40. ],
  41. exports: [RouterModule]
  42. })
  43. export class AppRoutingModule {}