From e738f95d6caae2c34922dd33613c251779687fd9 Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Thu, 6 Feb 2020 10:40:11 -0300 Subject: [PATCH] Fix En mesaje final --- src/app/modules/mensaje-final/mensaje-final.component.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/modules/mensaje-final/mensaje-final.component.ts b/src/app/modules/mensaje-final/mensaje-final.component.ts index cc5e8e7..a31e63a 100644 --- a/src/app/modules/mensaje-final/mensaje-final.component.ts +++ b/src/app/modules/mensaje-final/mensaje-final.component.ts @@ -1,3 +1,5 @@ + + import { Component, OnInit } from '@angular/core'; import { ArticuloService } from 'src/app/services/articulo/articulo.service'; import { Router } from '@angular/router'; @@ -12,14 +14,19 @@ export class MensajeFinalComponent implements OnInit { constructor( public articuloService: ArticuloService, - private router: Router - ) {} + private router: Router, + ) { } ngOnInit() { + this.timer = setTimeout(() => { + this.goToSplash(); + }, 90000); this.mediaPantalla(); } - OnDestroy() {} + OnDestroy() { + clearTimeout(this.timer); + } goToSplash() { this.articuloService.cleanShoppingCar(); -- 1.9.1