mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
31 lines
406 B
TypeScript
31 lines
406 B
TypeScript
import {App, Page, NavController} from 'ionic/ionic';
|
|
|
|
@Page({
|
|
templateUrl: 'first.html'
|
|
})
|
|
class FirstPage {
|
|
constructor(private _nav: NavController) {
|
|
|
|
}
|
|
|
|
goToSecond() {
|
|
this._nav.push(SecondPage);
|
|
}
|
|
}
|
|
|
|
@Page({
|
|
templateUrl: 'second.html'
|
|
})
|
|
class SecondPage {
|
|
|
|
}
|
|
|
|
@App({
|
|
template: '<ion-nav [root]="root"></ion-nav>'
|
|
})
|
|
class E2EApp {
|
|
constructor() {
|
|
this.root = FirstPage;
|
|
}
|
|
}
|