Ei kuvausta

app-routing.module.ts 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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: 'home',
  10. loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
  11. },
  12. {
  13. path: 'register',
  14. loadChildren: () => import('./register/register.module').then( m => m.RegisterPageModule)
  15. },
  16. {
  17. path: 'login',
  18. loadChildren: () => import('./login/login.module').then( m => m.LoginPageModule)
  19. },
  20. {
  21. path: 'forgot-password',
  22. loadChildren: () => import('./forgot-password/forgot-password.module').then( m => m.ForgotPasswordPageModule)
  23. },
  24. {
  25. path: 'register-form',
  26. loadChildren: () => import('./register-form/register-form.module').then( m => m.RegisterFormPageModule)
  27. },
  28. {
  29. path: 'profile',
  30. loadChildren: () => import('./profile/profile.module').then( m => m.ProfilePageModule)
  31. },
  32. {
  33. path: 'reset-password',
  34. loadChildren: () => import('./reset-password/reset-password.module').then( m => m.ResetPasswordPageModule)
  35. },
  36. {
  37. path: 'placedetail',
  38. loadChildren: () => import('./placedetail/placedetail.module').then( m => m.PlacedetailPageModule)
  39. },
  40. {
  41. path: 'place',
  42. loadChildren: () => import('./place/place.module').then( m => m.PlacePageModule)
  43. },
  44. {
  45. path: 'province',
  46. loadChildren: () => import('./province/province.module').then( m => m.ProvincePageModule)
  47. },
  48. {
  49. path: 'gmap',
  50. loadChildren: () => import('./gmap/gmap.module').then( m => m.GmapPageModule)
  51. },
  52. {
  53. path: 'nearme',
  54. loadChildren: () => import('./nearme/nearme.module').then( m => m.NearmePageModule)
  55. }
  56. ];
  57. @NgModule({
  58. imports: [
  59. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  60. ],
  61. exports: [RouterModule]
  62. })
  63. export class AppRoutingModule {}