app-routing.module.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { NgModule } from '@angular/core';
  2. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  3. const routes: Routes = [
  4. {
  5. path: '',
  6. loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  7. },
  8. {
  9. path: 'calendar',
  10. loadChildren: () => import('./calendar/calendar.module').then( m => m.CalendarPageModule)
  11. },
  12. {
  13. path: 'user',
  14. loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
  15. },
  16. {
  17. path: "tree",
  18. loadChildren: () => import('../modules/tab/tree/tree.module').then(m => m.TreePageModule)
  19. },
  20. {
  21. path: 'memo',
  22. loadChildren: () => import('./memo/memo.module').then( m => m.MemoPageModule)
  23. },
  24. {
  25. path: 'user',
  26. loadChildren: () => import('../modules/user/user.module').then(m => m.UserModule)
  27. },
  28. {
  29. path: "tree",
  30. loadChildren: () => import('../modules/tab/tree/tree.module').then(m => m.TreePageModule)
  31. },
  32. ];
  33. @NgModule({
  34. imports: [
  35. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  36. ],
  37. exports: [RouterModule]
  38. })
  39. export class AppRoutingModule {}