You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-routing.module.ts 1.5 KiB

4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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: 'home',
  10. loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
  11. },
  12. {
  13. path: 'live',
  14. loadChildren: () => import('./live/live.module').then( m => m.LivePageModule)
  15. },
  16. {
  17. path: 'more',
  18. loadChildren: () => import('./more/more.module').then( m => m.MorePageModule)
  19. },
  20. {
  21. path: 'home-details',
  22. loadChildren: () => import('./home-details/home-details.module').then( m => m.HomeDetailsPageModule)
  23. },
  24. {
  25. path: 'player-stats',
  26. loadChildren: () => import('./player-stats/player-stats.module').then( m => m.PlayerStatsPageModule)
  27. },
  28. {
  29. path: 'booking',
  30. loadChildren: () => import('./booking/booking.module').then( m => m.BookingPageModule)
  31. },
  32. {
  33. path: 'booking-details',
  34. loadChildren: () => import('./booking-details/booking-details.module').then( m => m.BookingDetailsPageModule)
  35. },
  36. {
  37. path: 'match-details',
  38. loadChildren: () => import('./match-details/match-details.module').then( m => m.MatchDetailsPageModule)
  39. },
  40. {
  41. path: 'chat',
  42. loadChildren: () => import('./chat/chat.module').then( m => m.ChatPageModule)
  43. }
  44. ];
  45. @NgModule({
  46. imports: [
  47. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  48. ],
  49. exports: [RouterModule]
  50. })
  51. export class AppRoutingModule {}