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 @@ - +