Files
Covid-app/src/app/app.component.ts
T

54 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-07-05 12:42:24 -05:00
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';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss']
})
2020-07-05 12:42:24 -05:00
export class AppComponent {
navigate:any;
2020-07-05 12:42:24 -05:00
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar
) {
this.initializeApp();
this.sideMenu();
2020-07-05 12:42:24 -05:00
}
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
});
}
sideMenu() {
this.navigate =
[
{
title : 'Información de la applicación',
url : '/manual',
icon : 'book'
},
{
title : 'Aviso de privacidad',
url : '/privacy',
icon : 'information-circle-outline'
},
{
title : 'Salir',
url : '/loggin',
icon : 'log-out-outline'
},
];
}
2020-07-05 12:42:24 -05:00
}