Created
November 14, 2023 18:49
-
-
Save Klerith/14b347adc335ce33d9b6bbda1a7efd9f to your computer and use it in GitHub Desktop.
Archivo de configuración de Rutas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Routes } from '@angular/router'; | |
| export const routes: Routes = [ | |
| { | |
| path: 'dashboard', | |
| loadComponent: () => import('./dashboard/dashboard.component'), | |
| children: [ | |
| { | |
| path: 'change-detection', | |
| title: 'Change Detection', | |
| loadComponent: () => import('./dashboard/pages/change-detection/change-detection.component'), | |
| }, | |
| { | |
| path: 'control-flow', | |
| title: 'Control Flow', | |
| loadComponent: () => import('./dashboard/pages/control-flow/control-flow.component'), | |
| }, | |
| { | |
| path: 'defer-options', | |
| title: 'Defer Options', | |
| loadComponent: () => import('./dashboard/pages/defer-options/defer-options.component'), | |
| }, | |
| { | |
| path: 'defer-views', | |
| title: 'Defer Views', | |
| loadComponent: () => import('./dashboard/pages/defer-views/defer-views.component'), | |
| }, | |
| { | |
| path: 'user/:id', | |
| title: 'User View', | |
| loadComponent: () => import('./dashboard/pages/user/user.component'), | |
| }, | |
| { | |
| path: 'user-list', | |
| title: 'User List', | |
| loadComponent: () => import('./dashboard/pages/users/users.component'), | |
| }, | |
| { | |
| path: 'view-transition', | |
| title: 'View Transition', | |
| loadComponent: () => import('./dashboard/pages/view-transition/view-transition.component'), | |
| }, | |
| { | |
| path:'', redirectTo: 'control-flow', pathMatch: 'full', | |
| } | |
| ] | |
| }, | |
| { | |
| path: '', | |
| redirectTo: '/dashboard', | |
| pathMatch: 'full' | |
| } | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment