tabs.routes_20241224093030.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: 'topic-detail',
  25. loadComponent: () =>
  26. import('../topic-detail/topic-detail.component').then((m) => m.TopicDetailComponent),
  27. },
  28. {
  29. path: 'topic-detail2',
  30. loadComponent: () =>
  31. import('../topic-detail2/topic-detail2.component').then((m) => m.TopicDetail2Component),
  32. },
  33. {
  34. path: 'topic-detail3',
  35. loadComponent: () =>
  36. import('../topic-detail3/topic-detail3.component').then((m) => m.TopicDetail3Component),
  37. },
  38. {
  39. path: 'page-psysurvey',
  40. loadComponent: () =>
  41. import('../page-psysurvey/page-psysurvey.component').then((m) => m.PagePsysurveyComponent),
  42. },
  43. {
  44. path: 'page-publishsurvey',
  45. loadComponent: () =>
  46. import('../page-publishsurvey/page-publishsurvey.component').then((m) => m.PagePublishsurveyComponent),
  47. },
  48. {
  49. path: 'consult-picture',
  50. loadComponent: () =>
  51. import('../consult-picture/consult-picture.component').then((m) => m.ConsultPictureComponent),
  52. },
  53. {
  54. path: '',
  55. redirectTo: '/tabs/tab1',
  56. pathMatch: 'full',
  57. },
  58. {
  59. path: 'drift-bottle',
  60. loadComponent: () =>
  61. import('../drift-bottle/drift-bottle.component').then((m) => m.DriftBottleComponent),
  62. },
  63. ],
  64. },
  65. {
  66. path: '',
  67. redirectTo: '/tabs/tab1',
  68. pathMatch: 'full',
  69. },
  70. ];