Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. const routes: Routes = [
  2. {
  3. path: '',
  4. pathMatch: 'full',
  5. redirectTo: '/projects'
  6. },
  7. {
  8. path: '',
  9. canActivate: [LocaleGuard],
  10. children: [
  11.  
  12. {
  13. path: '',
  14. children: [
  15. {
  16. path: 'email/confirmation',
  17. component: AppEmailConfirmationComponent
  18. },
  19. {
  20. path: 'email/resend_confirmation',
  21. component: AppLayout,
  22. children: [
  23. {
  24. path: '',
  25. component: AppEmailResendComponent
  26. }
  27. ]
  28. },
  29. {
  30. path: 'profile',
  31. loadChildren: '../join/join.module#JoinModule'
  32. },
  33. {
  34. path: '',
  35. canActivate: [GuestGuard],
  36. loadChildren: '../login/login.module#AppLoginModule'
  37. }
  38. ]
  39. },
  40. //protected routes
  41. {
  42. path: '',
  43. component: AppLayout,
  44. canActivate: [AuthGuard],
  45. children: [
  46. {
  47. path: 'expert',
  48. loadChildren: '../expert/expert.module#ExpertModule'
  49. },
  50. {
  51. path: 'join_order',
  52. loadChildren: '../joinOrder/joinOrder.module#JoinOrderModule'
  53. },
  54. {
  55. path: 'projects',
  56. loadChildren: '../index/index.module#IndexModule'
  57. },
  58. {
  59. path: 'invoices',
  60. loadChildren: '../invoices/invoices.module#InvoicesModule'
  61. },
  62. {
  63. path: 'notifications',
  64. loadChildren: '../notifications/notifications.module#NotificationsModule'
  65. },
  66. {
  67. path: 'profiles',
  68. loadChildren: '../profiles/profiles.module#ProfilesModule'
  69. },
  70. {
  71. path: 'project',
  72. loadChildren: '../project/project.module#ProjectModule'
  73. },
  74. {
  75. path: 'project/edit',
  76. loadChildren: '../projectEditor/projectEditor.module#ProjectEditorModule'
  77. },
  78. {
  79. path: 'settings',
  80. loadChildren: '../settings/settings.module#SettingsModule'
  81. },
  82. {
  83. path: 'settings/profiles',
  84. loadChildren: '../settingsProfile/profile.module#ProfileModule'
  85. },
  86. {
  87. path: '**',
  88. component: AppNotFoundComponent,
  89. }
  90. ]
  91. },
  92. {
  93. path: '',
  94. component: AppLayout,
  95. children: [
  96. {
  97. path: '404',
  98. component: AppNotFoundComponent,
  99. },
  100. {
  101. path: '**',
  102. component: AppNotFoundComponent,
  103. }
  104. ]
  105. }
  106. ]
  107. },
  108.  
  109.  
  110. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement