Commit 04cab3d712e56894c6113b299b169f27bf69a8b7
1 parent
032999d5a5
Exists in
develop
Fix
Lint errors
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/app/app-routing.module.ts
| 1 | import { NgModule } from '@angular/core'; | 1 | import { NgModule } from '@angular/core'; |
| 2 | import { Routes, RouterModule } from '@angular/router'; | 2 | import { Routes, RouterModule } from '@angular/router'; |
| 3 | import { SplashScreenComponent } from './modules/splash-screen/splash-screen.component'; | 3 | import { SplashScreenComponent } from './modules/splash-screen/splash-screen.component'; |
| 4 | import { AdminComponent } from './modules/admin/admin.component'; | 4 | import { AdminComponent } from './modules/admin/admin.component'; |
| 5 | 5 | ||
| 6 | const routes: Routes = [ | 6 | const routes: Routes = [ |
| 7 | { path: '', component: SplashScreenComponent }, | 7 | { path: '', component: SplashScreenComponent }, |
| 8 | { | 8 | { |
| 9 | path: '', | 9 | path: '', |
| 10 | component: AdminComponent, | 10 | component: AdminComponent, |
| 11 | children: [ | 11 | children: [ |
| 12 | { | 12 | { |
| 13 | path: 'info-formas-pago', | 13 | path: 'info-formas-pago', |
| 14 | loadChildren: () => import('./modules/info-formas-pago/info-formas-pago.module').then(m => m.InfoFormasPagoModule) | 14 | loadChildren: () => import('./modules/info-formas-pago/info-formas-pago.module').then(m => m.InfoFormasPagoModule) |
| 15 | }, | 15 | }, |
| 16 | { | 16 | { |
| 17 | path: 'indicaciones-pago-tarjeta', | 17 | path: 'indicaciones-pago-tarjeta', |
| 18 | loadChildren: () => import('./modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module').then(m => m.IndicacionesPagoTarjetaModule) | 18 | loadChildren: () => import('./modules/indicaciones-pago-tarjeta/indicaciones-pago-tarjeta.module') |
| 19 | .then(m => m.IndicacionesPagoTarjetaModule) | ||
| 19 | }, | 20 | }, |
| 20 | { | 21 | { |
| 21 | path: 'opcion-pedido', | 22 | path: 'opcion-pedido', |
| 22 | loadChildren: () => import('./modules/opcion-pedido/opcion-pedido.module').then(m => m.OpcionPedidoModule) | 23 | loadChildren: () => import('./modules/opcion-pedido/opcion-pedido.module').then(m => m.OpcionPedidoModule) |
| 23 | }, | 24 | }, |
| 24 | { | 25 | { |
| 25 | path: 'seleccion-articulos', | 26 | path: 'seleccion-articulos', |
| 26 | loadChildren: () => import('./modules/seleccion-articulos/seleccion-articulos.module').then(m => m.SeleccionArticulosModule) | 27 | loadChildren: () => import('./modules/seleccion-articulos/seleccion-articulos.module').then(m => m.SeleccionArticulosModule) |
| 27 | }, | 28 | }, |
| 28 | { | 29 | { |
| 29 | path: 'carrito', | 30 | path: 'carrito', |
| 30 | loadChildren: () => import('./modules/carrito/carrito.module').then(m => m.CarritoModule) | 31 | loadChildren: () => import('./modules/carrito/carrito.module').then(m => m.CarritoModule) |
| 31 | }, | 32 | }, |
| 32 | { | 33 | { |
| 33 | path: 'forma-pago', | 34 | path: 'forma-pago', |
| 34 | loadChildren: () => import('./modules/forma-pago/forma-pago.module').then(m => m.FormaPagoModule) | 35 | loadChildren: () => import('./modules/forma-pago/forma-pago.module').then(m => m.FormaPagoModule) |
| 35 | }, | 36 | }, |
| 36 | { | 37 | { |
| 37 | path: 'pago-electronico', | 38 | path: 'pago-electronico', |
| 38 | loadChildren: () => import('./modules/pago-electronico/pago-electronico.module').then(m => m.PagoElectronicoModule) | 39 | loadChildren: () => import('./modules/pago-electronico/pago-electronico.module').then(m => m.PagoElectronicoModule) |
| 39 | }, | 40 | }, |
| 40 | { | 41 | { |
| 41 | path: 'pago-tarjeta', | 42 | path: 'pago-tarjeta', |
| 42 | loadChildren: () => import('./modules/pago-tarjeta/pago-tarjeta.module').then(m => m.PagoTarjetaModule) | 43 | loadChildren: () => import('./modules/pago-tarjeta/pago-tarjeta.module').then(m => m.PagoTarjetaModule) |
| 43 | }, | 44 | }, |
| 44 | ] | 45 | ] |
| 45 | }, | 46 | }, |
| 46 | { | 47 | { |
| 47 | path: 'mensaje-final', | 48 | path: 'mensaje-final', |
| 48 | loadChildren: () => import('./modules/mensaje-final/mensaje-final.module').then(m => m.MensajeFinalModule) | 49 | loadChildren: () => import('./modules/mensaje-final/mensaje-final.module').then(m => m.MensajeFinalModule) |
| 49 | }, | 50 | }, |
| 50 | { | 51 | { |
| 51 | path: 'pedidos-salientes', | 52 | path: 'pedidos-salientes', |
| 52 | loadChildren: () => import('./modules/pedidos-salientes/pedidos-salientes.module').then(m => m.PedidosSalientesModule) | 53 | loadChildren: () => import('./modules/pedidos-salientes/pedidos-salientes.module').then(m => m.PedidosSalientesModule) |
| 53 | }, | 54 | }, |
| 54 | { | 55 | { |
| 55 | path: 'comanda', | 56 | path: 'comanda', |
| 56 | loadChildren: () => import('./modules/comanda/comanda.module').then(m => m.ComandaModule) | 57 | loadChildren: () => import('./modules/comanda/comanda.module').then(m => m.ComandaModule) |
| 57 | }, | 58 | }, |
| 58 | { | 59 | { |
| 59 | path: 'cancelar-compra', | 60 | path: 'cancelar-compra', |
| 60 | loadChildren: () => import('./shared/cancelar-compra/cancelar-compra.module').then(m => m.CancelarCompraModule) | 61 | loadChildren: () => import('./shared/cancelar-compra/cancelar-compra.module').then(m => m.CancelarCompraModule) |
| 61 | }, | 62 | }, |
| 62 | { path: '**', redirectTo: '', pathMatch: 'full' }, | 63 | { path: '**', redirectTo: '', pathMatch: 'full' }, |
| 63 | ]; | 64 | ]; |
| 64 | 65 | ||
| 65 | @NgModule({ | 66 | @NgModule({ |
| 66 | imports: [RouterModule.forRoot(routes, { useHash: true })], | 67 | imports: [RouterModule.forRoot(routes, { useHash: true })], |
| 67 | exports: [RouterModule] | 68 | exports: [RouterModule] |
| 68 | }) | 69 | }) |
| 69 | export class AppRoutingModule { } | 70 | export class AppRoutingModule { } |
| 70 | 71 |