splash-screen.component.ts 831 Bytes
import { Component, OnInit } from '@angular/core';
import { ArticuloService } from 'src/app/services/articulo/articulo.service';

@Component({
  selector: 'app-splash-screen',
  templateUrl: './splash-screen.component.html',
  styleUrls: ['./splash-screen.component.scss']
})
export class SplashScreenComponent implements OnInit {
  timerSplashScreen = 2000;
  showSplashScreen = true;
  textWelcome = 'BIENVENIDO!';
  textComoEstas = '¿cómo estás?';
  textInvitamos = 'TE INVITAMOS A HACER';
  textTuPedido = 'tu pedido acá';

  constructor(
    private articuloService: ArticuloService,
  ) { }

  ngOnInit() {
    this.articuloService.cleanShoppingCar();
    localStorage.clear();
    setTimeout(() => {
      this.showSplashScreen = false;
    }, this.timerSplashScreen);
    $('body').removeClass('media-pantalla');
  }
}