diff --git a/src/components/menu/test/basic/index.ts b/src/components/menu/test/basic/index.ts
index 5f10b43a4c..b31093b799 100644
--- a/src/components/menu/test/basic/index.ts
+++ b/src/components/menu/test/basic/index.ts
@@ -10,8 +10,8 @@ class Page1 {
presentAlert() {
let alert = Alert.create({
- title: "New Friend!",
- message: "Your friend, Obi wan Kenobi, just accepted your friend request!",
+ title: 'New Friend!',
+ message: 'Your friend, Obi wan Kenobi, just accepted your friend request!',
cssClass: 'my-alert',
buttons: ['Ok']
});
@@ -42,7 +42,7 @@ class Page2 {
templateUrl: 'main.html'
})
class E2EPage {
- rootPage;
+ rootPage: any;
changeDetectionCount: number = 0;
pages: Array<{title: string, component: any}>;
@ViewChild(Nav) nav: Nav;
@@ -57,7 +57,7 @@ class E2EPage {
];
}
- openPage(page) {
+ openPage(page: any) {
// 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).then(() => {
@@ -67,15 +67,15 @@ class E2EPage {
});
}
- onDrag(ev) {
+ onDrag(ev: any) {
console.log('Menu is being dragged', ev);
}
- onOpen(ev) {
+ onOpen(ev: any) {
console.log('Menu is open', ev);
}
- onClose(ev) {
+ onClose(ev: any) {
console.log('Menu is closed', ev);
}
diff --git a/src/components/menu/test/overlay/index.ts b/src/components/menu/test/overlay/index.ts
index 16c982aaf5..6b7dc2bf82 100644
--- a/src/components/menu/test/overlay/index.ts
+++ b/src/components/menu/test/overlay/index.ts
@@ -1,5 +1,5 @@
import {Component, ViewChild} from '@angular/core';
-import {ionicBootstrap, Nav} from '../../../../../src';
+import {ionicBootstrap, Nav, Alert} from '../../../../../src';
@Component({templateUrl: 'page1.html'})
@@ -14,7 +14,7 @@ class E2EApp {
rootView = Page1;
- openPage(menu, page) {
+ openPage(menu: any, page: any) {
// close the menu when clicking a link from the menu
menu.close();
@@ -22,6 +22,14 @@ class E2EApp {
// we wouldn't want the back button to show in this scenario
this.nav.setRoot(page.component);
}
+
+ showAlert() {
+ let alert = Alert.create({
+ title: 'Alert example',
+ buttons: ['Ok']
+ });
+ this.nav.present(alert);
+ }
}
ionicBootstrap(E2EApp);
diff --git a/src/components/menu/test/overlay/main.html b/src/components/menu/test/overlay/main.html
index d2cc66f6af..566ee8a40f 100644
--- a/src/components/menu/test/overlay/main.html
+++ b/src/components/menu/test/overlay/main.html
@@ -11,6 +11,9 @@
+
diff --git a/src/components/menu/test/push/index.ts b/src/components/menu/test/push/index.ts
index 16c982aaf5..6b7dc2bf82 100644
--- a/src/components/menu/test/push/index.ts
+++ b/src/components/menu/test/push/index.ts
@@ -1,5 +1,5 @@
import {Component, ViewChild} from '@angular/core';
-import {ionicBootstrap, Nav} from '../../../../../src';
+import {ionicBootstrap, Nav, Alert} from '../../../../../src';
@Component({templateUrl: 'page1.html'})
@@ -14,7 +14,7 @@ class E2EApp {
rootView = Page1;
- openPage(menu, page) {
+ openPage(menu: any, page: any) {
// close the menu when clicking a link from the menu
menu.close();
@@ -22,6 +22,14 @@ class E2EApp {
// we wouldn't want the back button to show in this scenario
this.nav.setRoot(page.component);
}
+
+ showAlert() {
+ let alert = Alert.create({
+ title: 'Alert example',
+ buttons: ['Ok']
+ });
+ this.nav.present(alert);
+ }
}
ionicBootstrap(E2EApp);
diff --git a/src/components/menu/test/push/main.html b/src/components/menu/test/push/main.html
index 0ffd95b46d..dd74678e77 100644
--- a/src/components/menu/test/push/main.html
+++ b/src/components/menu/test/push/main.html
@@ -11,6 +11,9 @@
+