From 8f2208184e456ded1654428aebc8606046475218 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Wed, 9 Sep 2015 10:17:13 -0500 Subject: [PATCH] Native demo --- ionic/components/app/test/native/index.ts | 11 ++++++++++- ionic/components/app/test/sink/main.html | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ionic/components/app/test/native/index.ts b/ionic/components/app/test/native/index.ts index e2bbea6418..d118b39e32 100644 --- a/ionic/components/app/test/native/index.ts +++ b/ionic/components/app/test/native/index.ts @@ -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]); + } } diff --git a/ionic/components/app/test/sink/main.html b/ionic/components/app/test/sink/main.html index 14bde37d3d..d2382f9380 100644 --- a/ionic/components/app/test/sink/main.html +++ b/ionic/components/app/test/sink/main.html @@ -9,7 +9,7 @@ - +