|
@@ -24,6 +24,7 @@ export class MyApp {
|
|
|
rootPage: any = LoginPage;
|
|
|
homePage: any = HomePage;
|
|
|
entries: Array<{ visible: boolean, title: string, pages: Array<{ visible: boolean, title: string, icon: string, component: any, params?: any }> }>;
|
|
|
+ activePage: any;
|
|
|
loader: Loading;
|
|
|
|
|
|
constructor(
|
|
@@ -179,6 +180,14 @@ export class MyApp {
|
|
|
*
|
|
|
*/
|
|
|
openPage(page) {
|
|
|
+ this.activePage = page;
|
|
|
this.nav.setRoot(page.component, page);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ getActivePage(): any {
|
|
|
+ return this.activePage;
|
|
|
+ }
|
|
|
}
|