mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
23 lines
388 B
JavaScript
23 lines
388 B
JavaScript
import {Component, View, Parent} from 'angular2/angular2'
|
|
import {NavController} from 'ionic/components'
|
|
import {ThirdPage} from 'pages/third-page'
|
|
|
|
|
|
@Component()
|
|
@View({
|
|
templateUrl: 'pages/second-page.html'
|
|
})
|
|
export class SecondPage {
|
|
constructor(
|
|
nav: NavController
|
|
) {
|
|
this.nav = nav
|
|
}
|
|
pop() {
|
|
this.nav.pop();
|
|
}
|
|
push() {
|
|
this.nav.push(ThirdPage);
|
|
}
|
|
}
|