tabs-routing.module.ts 910 B

123456789101112131415161718192021222324252627282930313233343536373839
  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:"",pathMatch:"full",redirectTo:"/tabs/tab1"
  7. },
  8. {
  9. path: 'tabs',
  10. component: TabsPage,
  11. children: [
  12. {
  13. path: 'tab1',
  14. loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule)
  15. },
  16. {
  17. path: 'tab2',
  18. loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule)
  19. },
  20. {
  21. path: 'tab3',
  22. loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
  23. },
  24. {
  25. path: 'tab4',
  26. loadChildren: () => import('../tab4/tab4.module').then( m => m.Tab4PageModule)
  27. },
  28. ]
  29. },
  30. ];
  31. @NgModule({
  32. imports: [RouterModule.forChild(routes)],
  33. })
  34. export class TabsPageRoutingModule {}