tabs.routes.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: 'home',
  10. loadComponent: () =>
  11. import('../home/home.page').then((m) => m.HomePage),
  12. },
  13. {
  14. path: 'forum',
  15. loadComponent: () =>
  16. import('../forum/forum.page').then((m) => m.ForumPage),
  17. },
  18. {
  19. path: 'person',
  20. loadComponent: () =>
  21. import('../person/person.page').then((m) => m.PersonPage),
  22. },
  23. {
  24. path: 'character-creator',
  25. loadComponent: () => import('../character-creator/character-creator.page').then(m => m.CharacterCreatorPage)
  26. },
  27. {
  28. path: 'story-generator',
  29. loadComponent: () => import('../story-generator/story-generator.page').then(m => m.StoryGeneratorPage)
  30. },
  31. {
  32. path: 'toolbox',
  33. loadComponent: () => import('../toolbox/toolbox.page').then(m => m.ToolboxPage)
  34. },
  35. {
  36. path: '',
  37. redirectTo: '/tabs/home',
  38. pathMatch: 'full',
  39. },
  40. ],
  41. },
  42. {
  43. path: '',
  44. redirectTo: '/tabs/home',
  45. pathMatch: 'full',
  46. },
  47. ];