tabs-routing.module.ts 822 B

1234567891011121314151617181920212223242526272829303132333435
  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: '',
  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: '',
  23. redirectTo: 'tab1',
  24. pathMatch: 'full'
  25. }
  26. ]
  27. }
  28. ];
  29. @NgModule({
  30. imports: [RouterModule.forChild(routes)],
  31. exports: [RouterModule]
  32. })
  33. export class TabsPageRoutingModule {}