From ff326078f9d60a5146b34cb883e12b1984516c75 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Mar 2020 16:57:58 -0400 Subject: [PATCH] fix --- src/app/app.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c0a8a23..88cbddb 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -3,6 +3,7 @@ import { Component } from '@angular/core'; import { Platform } from '@ionic/angular'; import { SplashScreen } from '@ionic-native/splash-screen/ngx'; import { StatusBar } from '@ionic-native/status-bar/ngx'; +import { Router } from '@angular/router'; @Component({ selector: 'app-root', @@ -12,7 +13,8 @@ export class AppComponent { constructor( private platform: Platform, private splashScreen: SplashScreen, - private statusBar: StatusBar + private statusBar: StatusBar, + private router :Router ) { this.initializeApp(); } @@ -20,7 +22,8 @@ export class AppComponent { initializeApp() { this.platform.ready().then(() => { this.statusBar.styleDefault(); - this.splashScreen.hide(); + this.splashScreen.hide(); + this.router.navigateByUrl('start'); }); } }