app-routing.module.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <<<<<<< HEAD
  2. import { NgModule } from '@angular/core';
  3. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  4. const routes: Routes = [
  5. {
  6. path: '',
  7. loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  8. },
  9. {
  10. path: 'tab4',
  11. loadChildren: () => import('./tab4/tab4.module').then( m => m.Tab4PageModule)
  12. }, {
  13. path: 'login',
  14. loadChildren: () => import('./login/login.module').then( m => m.LoginPageModule)
  15. }
  16. ];
  17. @NgModule({
  18. imports: [
  19. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  20. ],
  21. exports: [RouterModule]
  22. })
  23. export class AppRoutingModule {}
  24. =======
  25. import { NgModule } from '@angular/core';
  26. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  27. const routes: Routes = [
  28. {
  29. path: '',
  30. loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  31. },
  32. {
  33. path: 'tab4',
  34. loadChildren: () => import('./tab4/tab4.module').then( m => m.Tab4PageModule)
  35. },
  36. { path: 'comment-reply', loadChildren: () => import('./comment-reply/comment-reply.module').then(m => m.CommentReplyPageModule) },
  37. { path: 'like-favorite', loadChildren: () => import('./like-favorite/like-favorite.module').then(m => m.LikeFavoritePageModule) },
  38. { path: 'follow', loadChildren: () => import('./follow/follow.module').then(m => m.FollowPageModule) },
  39. { path: 'system-message', loadChildren: () => import('./system-message/system-message.module').then(m => m.SystemMessagePageModule) },
  40. ];
  41. @NgModule({
  42. imports: [
  43. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  44. ],
  45. exports: [RouterModule]
  46. })
  47. export class AppRoutingModule {}
  48. >>>>>>> 9ac83b6fb2162c25fca57e0a38988562b679b49d