Commit 02a11ddacf22d12314dcbad67927cd0b48f89b0d

Authored by Marcelo Puebla
1 parent 580a4bb4c7
Exists in master and in 1 other branch validar_pve

Movidas arribas variables.

Showing 1 changed file with 12 additions and 13 deletions   Show diff stats
src/app/components/inicio/inicio.component.ts
... ... @@ -12,6 +12,18 @@ import { Sinonimo } from 'src/app/wrappers/sinonimo';
12 12 styleUrls: ['./inicio.component.scss']
13 13 })
14 14 export class InicioComponent implements OnInit {
  15 +
  16 + private tienePromo = false;
  17 + private productoEsPromo = false;
  18 + private busqueda: string = '';
  19 + private productoAcargar: Producto;
  20 + private promoAcargar: Producto;
  21 + private productos: Producto[] = [];
  22 + private promociones: Producto[] = [];
  23 + private sinonimos: Sinonimo[] = [];
  24 + private apiUrl: string = appSettings.apiUrl
  25 +
  26 + @ViewChild('pop', { static: false }) popoverDirective: PopoverDirective;
15 27  
16 28 @HostListener('document:keypress', ["$event"]) catchInput(e: KeyboardEvent) {
17 29  
... ... @@ -24,19 +36,6 @@ export class InicioComponent implements OnInit {
24 36  
25 37 };
26 38  
27   - @ViewChild('pop', { static: false }) popoverDirective: PopoverDirective;
28   - private tienePromo = false;
29   - private productoEsPromo = false;
30   - private busqueda: string = '';
31   -
32   - private productoAcargar: Producto;
33   - private promoAcargar: Producto;
34   -
35   - productos: Producto[] = [];
36   - promociones: Producto[] = [];
37   - sinonimos: Sinonimo[] = [];
38   - apiUrl: string = appSettings.apiUrl
39   -
40 39 constructor(
41 40 private router: Router,
42 41 private productoService: ProductoService) { }