tabs.routes.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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: 'test-page',
  20. loadComponent: () =>
  21. import('../tab2/test-page/test-page.component').then((m) => m.TestPageComponent),
  22. },
  23. // {
  24. // path: 'tab3',
  25. // loadComponent: () =>
  26. // import('../tab3/tab3.page').then((m) => m.Tab3Page),
  27. // },
  28. {
  29. path: 'community',
  30. loadComponent: () =>
  31. import('../community/community.page').then((m) => m.CommunityPage),
  32. },
  33. {
  34. path: 'post-page',
  35. loadComponent: () =>
  36. import('../post-page/post-page.component').then((m) => m.PostPageComponent),
  37. },
  38. {
  39. path: 'share-page',
  40. loadComponent: () =>
  41. import('../share-page/share-page.component').then((m) => m.SharePageComponent),
  42. },
  43. {
  44. path: 'tab4',
  45. loadComponent: () =>
  46. import('../tab4/tab4.page').then((m) => m.Tab4Page),
  47. },
  48. {
  49. path: 'todolistpage',
  50. loadComponent: () =>
  51. import('../page/todolist-page/todolist-page.component').then(
  52. (m) => m.TodolistPageComponent
  53. ),
  54. },
  55. {
  56. path: 'aiplanpage',
  57. loadComponent: () =>
  58. import('../page/aiplan-page/aiplan-page.component').then(
  59. (m) => m.AiplanPageComponent
  60. ),
  61. },
  62. {
  63. path: 'aipicture',
  64. loadComponent: () =>
  65. import('../page/aipicture-page/aipicture-page.component').then(
  66. (m) => m.AipicturePageComponent
  67. ),
  68. },
  69. {
  70. path: 'taskchain',
  71. loadComponent: () =>
  72. import('../page/taskchain-page/taskchain-page.component').then(
  73. (m) => m.TaskchainPageComponent
  74. ),
  75. },
  76. {
  77. path: 'aichat',
  78. loadComponent: () =>
  79. import('../page/aichat-page/aichat-page.component').then(
  80. (m) => m.AichatPageComponent
  81. ),
  82. },
  83. {
  84. path: '',
  85. redirectTo: '/tabs/tab1',
  86. pathMatch: 'full',
  87. },
  88. ],
  89. },
  90. {
  91. path: '',
  92. redirectTo: '/tabs/tab1',
  93. pathMatch: 'full',
  94. },
  95. ];