tabs-routing.module.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { TabsPage } from './tabs.page';
  4. const routes: Routes = [
  5. {
  6. path: 'tabs',
  7. component: TabsPage,
  8. children: [
  9. {
  10. path: 'tab1',
  11. loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule)
  12. },
  13. {
  14. path: 'tab2',
  15. loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule)
  16. },
  17. {
  18. path: 'tab3',
  19. loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
  20. },
  21. {
  22. path: 'calendar',
  23. loadChildren: () => import('../../modules/user/mine/mine.module').then(mod => mod.MinePageModule)
  24. },
  25. {
  26. path: "tree",
  27. loadChildren: () => import('../../modules/tab/tree/tree.module').then(mod => mod.TreePageModule)
  28. },
  29. {
  30. path: '',
  31. redirectTo: '/tabs/tab1',
  32. pathMatch: 'full'
  33. }
  34. ]
  35. },
  36. {
  37. path: '',
  38. redirectTo: '/tabs/tab1',
  39. pathMatch: 'full'
  40. }
  41. ];
  42. @NgModule({
  43. imports: [RouterModule.forChild(routes)],
  44. })
  45. export class TabsPageRoutingModule {}