Native demo

This commit is contained in:
Max Lynch
2015-09-09 10:17:13 -05:00
parent 69101e2ec0
commit 8f2208184e
2 changed files with 11 additions and 2 deletions

View File

@@ -17,7 +17,9 @@ import {VibrationPage} from 'pages/vibration';
templateUrl: 'main.html'
})
class IonicApp {
constructor() {
constructor(app: IonicApp) {
this.app = app;
this.firstPage = CameraPage;
console.log('First page', CameraPage);
this.plugins = [
@@ -30,4 +32,11 @@ class IonicApp {
{title: 'Vibration', page: VibrationPage},
]
}
openPage(aside, plugin) {
aside.close();
let nav = this.app.getComponent('myNav');
nav.setItems([plugin.page]);
}
}

View File

@@ -9,7 +9,7 @@
</ion-content>
</ion-aside>
<ion-nav #content swipe-back-enabled="false"></ion-nav>
<ion-nav id="myNav" #content swipe-back-enabled="false"></ion-nav>
<style>
my-modal {