tabs.routes.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: 'person',
  15. loadComponent: () =>
  16. import('../person/person.page').then((m) => m.PersonPage),
  17. },
  18. {
  19. path: 'character',
  20. loadComponent: () => import('../character/character.page').then( m => m.CharacterPage)
  21. },
  22. {
  23. path: 'story-generator',
  24. loadComponent: () => import('../story-generator/story-generator.page').then(m => m.StoryGeneratorPage)
  25. },
  26. {
  27. path: 'toolbox',
  28. loadComponent: () => import('../toolbox/toolbox.page').then(m => m.ToolboxPage)
  29. },
  30. {
  31. path: '',
  32. redirectTo: '/tabs/home',
  33. pathMatch: 'full',
  34. },
  35. ],
  36. },
  37. {
  38. path: '',
  39. redirectTo: '/tabs/home',
  40. pathMatch: 'full',
  41. },
  42. ];