mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
31 lines
407 B
TypeScript
31 lines
407 B
TypeScript
import {App, IonicApp, IonicView, NavController} from 'ionic/ionic';
|
|
|
|
|
|
@IonicView({
|
|
templateUrl: 'home-page.html'
|
|
})
|
|
class HomePage {
|
|
|
|
constructor(app: IonicApp) {
|
|
this.app = app;
|
|
}
|
|
|
|
toggleAside() {
|
|
console.log('toggleAside')
|
|
this.app.getComponent('mainMenu').toggle();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html'
|
|
})
|
|
class E2EApp {
|
|
|
|
constructor() {
|
|
this.rootView = HomePage;
|
|
}
|
|
|
|
}
|