diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts
index 671aba6..4fc11fe 100644
--- a/src/app/components/inicio/inicio.component.ts
+++ b/src/app/components/inicio/inicio.component.ts
@@ -84,9 +84,10 @@ export class InicioComponent implements OnInit {
});
}
- private goPage(pageUrl) {
+ private irBusquedaProductos(verPromociones) {
- this.router.navigate([pageUrl]);
+ this.productoService.verCategoriasProductos = verPromociones;
+ this.router.navigate(['busqueda-productos']);
}
deshacerCarga() {
diff --git a/src/app/services/producto.service.ts b/src/app/services/producto.service.ts
index fbe4384..f72c7ab 100644
--- a/src/app/services/producto.service.ts
+++ b/src/app/services/producto.service.ts
@@ -11,6 +11,7 @@ export class ProductoService {
productos: Producto[] = [];
productoAcargar: Producto;
+ verCategoriasProductos: boolean = true;
constructor(private http: HttpClient) { }