mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
24 lines
435 B
JavaScript
24 lines
435 B
JavaScript
import {Component, View, Parent} from 'angular2/angular2'
|
|
import {NavController, Toolbar, Content} from 'ionic/ionic'
|
|
import {ThirdPage} from 'pages/third-page'
|
|
|
|
|
|
@Component()
|
|
@View({
|
|
templateUrl: 'pages/second-page.html',
|
|
directives: [Toolbar, Content]
|
|
})
|
|
export class SecondPage {
|
|
constructor(
|
|
nav: NavController
|
|
) {
|
|
this.nav = nav
|
|
}
|
|
pop() {
|
|
this.nav.pop();
|
|
}
|
|
push() {
|
|
this.nav.push(ThirdPage);
|
|
}
|
|
}
|