mobile.routes.ts 690 B

12345678910111213141516171819202122232425262728
  1. import { Routes } from '@angular/router';
  2. import { NavMobileTabs } from './nav-mobile-tabs/nav-mobile-tabs';
  3. export const MOBILE_ROUTES: Routes = [
  4. {
  5. path: '',
  6. component: NavMobileTabs,
  7. children: [
  8. {
  9. path: 'home',
  10. loadComponent: () => import('./page-home/page-home').then(m => m.PageHome)
  11. },
  12. {
  13. path: 'cart',
  14. loadComponent: () => import('./page-cart/page-cart').then(m => m.PageCart)
  15. },
  16. {
  17. path: 'mine',
  18. loadComponent: () => import('./page-mine/page-mine').then(m => m.PageMineComponent)
  19. },
  20. {
  21. path: '',
  22. redirectTo: 'home',
  23. pathMatch: 'full'
  24. }
  25. ]
  26. }
  27. ];