app-routing.module.ts
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SplashScreenComponent } from './modules/splash-screen/splash-screen.component';
import { AdminComponent } from './modules/admin/admin.component';
const routes: Routes = [
{ path: '', component: SplashScreenComponent },
{
path: '',
component: AdminComponent,
children: [
{
path: 'formas-pago',
loadChildren: () => import('./modules/formas-pago/formas-pago.module').then(m => m.FormasPagoModule)
},
{
path: 'opcion-pedido',
loadChildren: () => import('./modules/opcion-pedido/opcion-pedido.module').then(m => m.OpcionPedidoModule)
},
{
path: 'seleccion-articulos',
loadChildren: () => import('./modules/seleccion-articulos/seleccion-articulos.module').then(m => m.SeleccionArticulosModule)
},
{
path: 'carrito',
loadChildren: () => import('./modules/carrito/carrito.module').then(m => m.CarritoModule)
},
]
},
{ path: '**', redirectTo: '', pathMatch: 'full' },
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }