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 { AuthenticationService } from "./services/authentication.service" ; import { Router } from "@angular/router" ; @ Component ( { selector : "app-root" , templateUrl : "app.component.html" } ) export class AppComponent { selectedPath = "" ; public appPages = [ { title : "Home" , url : "/members/tabs/tabHome" , icon : "home" } , { title : "About" , url : "/members/about" , icon : "list" } ] ; constructor ( private platform , private splashScreen , private statusBar , private auth , private router ) { this . initializeApp ( ) ; } logout ( ) { this . auth . setLoggedIn ( false ) ; this . router . navigateByUrl ( "/" ) ; } initializeApp ( ) { this . platform . ready ( ) . then ( ( ) => { this . statusBar . styleDefault ( ) ; this . splashScreen . hide ( ) ; } ) ; } }