import {IonicApp, Page, NavController} from 'ionic/ionic';
import {TabsPage} from '../tabs/tabs';
import {SignupPage} from '../signup/signup';

@Page({
  templateUrl: 'app/login/login.html',
})
export class LoginPage {
  constructor(nav: NavController, app: IonicApp) {
    this.nav = nav;
    this.app = app;
    this.app.getComponent('leftMenu').enable(false);
  }

  login() {
    this.nav.push(TabsPage);
  }

  signup() {
    this.nav.push(SignupPage);
  }

  onPageWillLeave() {
    this.app.getComponent('leftMenu').enable(true);
  }
}

@@ -307,61 +307,8 @@
 pp;%0A
-    this.app.getComponent('leftMenu').enable(false);%0A
   %7D%0A
@@ -403,16 +403,95 @@
 );%0A  %7D%0A%0A
+  onPageDidEnter() %7B%0A    this.app.getComponent('leftMenu').enable(false);%0A  %7D%0A%0A
   onPage

disable login after enter