From 6f304ccd82e28ea4eeafd3a6af75edce48a2ad22 Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Wed, 5 Feb 2020 10:23:55 -0300 Subject: [PATCH] Fix limpiar carrito en el splash --- src/app/modules/splash-screen/splash-screen.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/modules/splash-screen/splash-screen.component.ts b/src/app/modules/splash-screen/splash-screen.component.ts index 19a6ee9..632b23c 100644 --- a/src/app/modules/splash-screen/splash-screen.component.ts +++ b/src/app/modules/splash-screen/splash-screen.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { ArticuloService } from 'src/app/services/articulo/articulo.service'; @Component({ selector: 'app-splash-screen', @@ -13,9 +14,12 @@ export class SplashScreenComponent implements OnInit { textInvitamos = 'TE INVITAMOS A HACER'; textTuPedido = 'tu pedido acá'; - constructor() {} + constructor( + private articuloService: ArticuloService, + ) { } ngOnInit() { + this.articuloService.cleanShoppingCar(); localStorage.clear(); setTimeout(() => { this.showSplashScreen = false; -- 1.9.1