Commit 5eafeea0a6c0cbac78e8a223c47556f46184d03e
1 parent
7997e6b456
Exists in
develop
limpado local storage
Showing
1 changed file
with
1 additions
and
0 deletions
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 |