Guest User

Untitled

a guest
Mar 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. const routes: Routes = [
  2. {
  3. path: 'dashboard',
  4. component: DashboardComponent,
  5. children: [
  6. {
  7. path: 'account-overview', component: AccountOverviewComponent
  8. },
  9. {
  10. path: 'account-security', component: AccountSecurityComponent
  11. },
  12. {
  13. path: 'products', component: ProductComponent,
  14. children: [
  15. {
  16. path: 'product-details', component: ProductsDetailsComponent
  17. },
  18. {
  19. path: 'product-overview', component: ProductsOverviewComponent
  20. }
  21. ]
  22. }
  23. ]
  24. },
  25. {
  26. path: 'cart',
  27. component: CartComponent,
  28. children: [
  29. {
  30. path: 'cart-overview', component: CartOverviewComponent
  31. },
  32. {
  33. path: 'cart-item-details', component: CartItemDetailsComponent
  34. }
  35. ]
  36. },
  37. { path: 'login', component: LoginComponent },
  38. { path: 'sign-up', component: SignUpComponent },
  39. { path: '', pathMatch: 'full', redirectTo: '/dashboard' }
  40. ];
Add Comment
Please, Sign In to add comment