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']
|
|
|
|
|
})
|
2022-02-08 19:10:59 -06:00
|
|
|
|
2020-07-05 12:42:24 -05:00
|
|
|
export class AppComponent {
|
2022-02-08 19:10:59 -06:00
|
|
|
|
|
|
|
|
navigate:any;
|
|
|
|
|
|
2020-07-05 12:42:24 -05:00
|
|
|
constructor(
|
|
|
|
|
private platform: Platform,
|
|
|
|
|
private splashScreen: SplashScreen,
|
|
|
|
|
private statusBar: StatusBar
|
|
|
|
|
) {
|
|
|
|
|
this.initializeApp();
|
2022-02-08 19:10:59 -06:00
|
|
|
this.sideMenu();
|
2020-07-05 12:42:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
initializeApp() {
|
|
|
|
|
this.platform.ready().then(() => {
|
|
|
|
|
this.statusBar.styleDefault();
|
|
|
|
|
this.splashScreen.hide();
|
|
|
|
|
});
|
|
|
|
|
}
|
2022-02-08 19:10:59 -06:00
|
|
|
|
|
|
|
|
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
|
|
|
}
|