tabs.routes.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { Routes } from '@angular/router';
  2. import { TabsPage } from './tabs.page';
  3. export const routes: Routes = [
  4. {
  5. path: 'tabs',
  6. component: TabsPage,
  7. children: [
  8. {
  9. path: 'tab1',
  10. loadComponent: () =>
  11. import('../tab1/tab1.page').then((m) => m.Tab1Page),
  12. },
  13. {
  14. path: 'tab2',
  15. loadComponent: () =>
  16. import('../tab2/tab2.page').then((m) => m.Tab2Page),
  17. },
  18. {
  19. path: 'tab3',
  20. loadComponent: () =>
  21. import('../tab3/tab3.page').then((m) => m.Tab3Page),
  22. },
  23. {
  24. path: 'tab4',
  25. loadComponent: () =>
  26. import('../tab4/tab4.page').then((m) => m.tab4Page),
  27. },
  28. {
  29. path: 'tab5',
  30. loadComponent: () =>
  31. import('../tab5/tab5.page').then((m) => m.tab5Page),
  32. },
  33. {
  34. path: 'interest-test',
  35. loadComponent: () =>
  36. import('../interest-test/interest-test.component').then((m) => m.InterestTestComponent),
  37. },
  38. {
  39. path: 'view-all',
  40. loadComponent: () =>
  41. import('../view-all/view-all.component').then((m) => m.ViewAllComponent),
  42. },
  43. {
  44. path: 'interest-picture',
  45. loadComponent: () =>
  46. import('../interest-picture/interest-picture.component').then((m) => m.InterestPictureComponent),
  47. },
  48. {
  49. path: 'interest-search',
  50. loadComponent: () =>
  51. import('../interest-search/interest-search.component').then((m) => m.InterestSearchComponent),
  52. },
  53. {
  54. path: '',
  55. redirectTo: '/tabs/tab1',
  56. pathMatch: 'full',
  57. },
  58. ],
  59. },
  60. {
  61. path: '',
  62. redirectTo: '/tabs/tab1',
  63. pathMatch: 'full',
  64. },
  65. ];