Commit 6f304ccd82e28ea4eeafd3a6af75edce48a2ad22

Authored by Marcelo Puebla
1 parent 073d89f810
Exists in develop

Fix

limpiar carrito en el splash
src/app/modules/splash-screen/splash-screen.component.ts
1 1 import { Component, OnInit } from '@angular/core';
  2 +import { ArticuloService } from 'src/app/services/articulo/articulo.service';
2 3  
3 4 @Component({
4 5 selector: 'app-splash-screen',
... ... @@ -13,9 +14,12 @@ export class SplashScreenComponent implements OnInit {
13 14 textInvitamos = 'TE INVITAMOS A HACER';
14 15 textTuPedido = 'tu pedido acá';
15 16  
16   - constructor() {}
  17 + constructor(
  18 + private articuloService: ArticuloService,
  19 + ) { }
17 20  
18 21 ngOnInit() {
  22 + this.articuloService.cleanShoppingCar();
19 23 localStorage.clear();
20 24 setTimeout(() => {
21 25 this.showSplashScreen = false;