Commit 10ec5e48c25af22b6a36a566d99ee4adb68a99db
Exists in
develop
Merge branch 'develop' into 'develop'
Develop See merge request !30
Showing
1 changed file
Show diff stats
src/app/modules/splash-screen/splash-screen.component.ts
1 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit } from '@angular/core'; |
2 | 2 | ||
3 | @Component({ | 3 | @Component({ |
4 | selector: 'app-splash-screen', | 4 | selector: 'app-splash-screen', |
5 | templateUrl: './splash-screen.component.html', | 5 | templateUrl: './splash-screen.component.html', |
6 | styleUrls: ['./splash-screen.component.scss'] | 6 | styleUrls: ['./splash-screen.component.scss'] |
7 | }) | 7 | }) |
8 | export class SplashScreenComponent implements OnInit { | 8 | export class SplashScreenComponent implements OnInit { |
9 | timerSplashScreen = 2000; | 9 | timerSplashScreen = 2000; |
10 | showSplashScreen = true; | 10 | showSplashScreen = true; |
11 | textWelcome = 'BIENVENIDO A SPOT!'; | 11 | textWelcome = 'BIENVENIDO A SPOT!'; |
12 | textComoEstas = '¿cómo estás?'; | 12 | textComoEstas = '¿cómo estás?'; |
13 | textInvitamos = 'TE INVITAMOS A HACER'; | 13 | textInvitamos = 'TE INVITAMOS A HACER'; |
14 | textTuPedido = 'tu pedido acá'; | 14 | textTuPedido = 'tu pedido acá'; |
15 | 15 | ||
16 | constructor() { } | 16 | constructor() { } |
17 | 17 | ||
18 | ngOnInit() { | 18 | ngOnInit() { |
19 | localStorage.clear(); | ||
19 | setTimeout(() => { | 20 | setTimeout(() => { |
20 | this.showSplashScreen = false; | 21 | this.showSplashScreen = false; |
21 | }, this.timerSplashScreen); | 22 | }, this.timerSplashScreen); |
22 | } | 23 | } |
23 | 24 | ||
24 | } | 25 | } |
25 | 26 |