app-routing.module.ts
1.55 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
38
39
40
41
42
43
44
45
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: 'info-formas-pago',
loadChildren: () => import('./modules/info-formas-pago/info-formas-pago.module').then(m => m.InfoFormasPagoModule)
},
{
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: 'forma-pago',
loadChildren: () => import('./modules/forma-pago/forma-pago.module').then(m => m.FormaPagoModule)
},
{
path: 'pago-electronico',
loadChildren: () => import('./modules/pago-electronico/pago-electronico.module').then(m => m.PagoElectronicoModule)
},
]
},
{ path: '**', redirectTo: '', pathMatch: 'full' },
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule { }