1
1
import { AppState } from './app.global' ;
2
2
import { Component , ViewChild } from '@angular/core' ;
3
- import { Nav , Platform } from 'ionic-angular' ;
3
+ import { Nav , Platform , MenuController } from 'ionic-angular' ;
4
4
import { StatusBar } from '@ionic-native/status-bar' ;
5
5
import { SplashScreen } from '@ionic-native/splash-screen' ;
6
6
import { Subject } from 'rxjs' ;
@@ -18,7 +18,13 @@ export class MyApp {
18
18
rightMenuItems : Array < { icon : string , active : boolean } > ;
19
19
state : any ;
20
20
21
- constructor ( public platform : Platform , public statusBar : StatusBar , public splashscreen : SplashScreen , public global : AppState ) {
21
+ constructor (
22
+ public platform : Platform ,
23
+ public statusBar : StatusBar ,
24
+ public splashscreen : SplashScreen ,
25
+ public global : AppState ,
26
+ public menuCtrl : MenuController
27
+ ) {
22
28
this . initializeApp ( ) ;
23
29
this . rightMenuItems = [
24
30
{ icon : 'home' , active : true } ,
@@ -64,6 +70,7 @@ export class MyApp {
64
70
// Here you can do any higher level native things you might need.
65
71
this . statusBar . styleDefault ( ) ;
66
72
this . splashscreen . hide ( ) ;
73
+ this . menuCtrl . enable ( false , 'right' ) ;
67
74
} ) ;
68
75
}
69
76
0 commit comments