|
@@ -2,8 +2,6 @@ import { Component, ViewChild } from '@angular/core';
|
|
import { Nav, Platform } from 'ionic-angular';
|
|
import { Nav, Platform } from 'ionic-angular';
|
|
import { StatusBar, Splashscreen } from 'ionic-native';
|
|
import { StatusBar, Splashscreen } from 'ionic-native';
|
|
|
|
|
|
-import { Page1 } from '../pages/page1/page1';
|
|
|
|
-import { Page2 } from '../pages/page2/page2';
|
|
|
|
import { LoginPage } from "../pages/login/login";
|
|
import { LoginPage } from "../pages/login/login";
|
|
import { HomePage } from "../pages/home/home";
|
|
import { HomePage } from "../pages/home/home";
|
|
import { CustomersPage } from "../pages/customers/customers";
|
|
import { CustomersPage } from "../pages/customers/customers";
|
|
@@ -73,18 +71,20 @@ export class MyApp {
|
|
];
|
|
];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
initializeApp() {
|
|
initializeApp() {
|
|
this.platform.ready().then(() => {
|
|
this.platform.ready().then(() => {
|
|
- // Okay, so the platform is ready and our plugins are available.
|
|
|
|
- // Here you can do any higher level native things you might need.
|
|
|
|
StatusBar.styleDefault();
|
|
StatusBar.styleDefault();
|
|
Splashscreen.hide();
|
|
Splashscreen.hide();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
openPage(page) {
|
|
openPage(page) {
|
|
- // Reset the content nav to have just this page
|
|
|
|
- // we wouldn't want the back button to show in this scenario
|
|
|
|
this.nav.setRoot(page.component);
|
|
this.nav.setRoot(page.component);
|
|
}
|
|
}
|
|
}
|
|
}
|