mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
33 lines
662 B
JavaScript
33 lines
662 B
JavaScript
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {NavController, NavParams, Header, ToolbarTitle, Toolbar} from 'ionic/ionic';
|
|
import {ThirdPage} from './third-page';
|
|
|
|
|
|
@Component()
|
|
@View({
|
|
templateUrl: 'pages/second-page.html',
|
|
directives: [Header, ToolbarTitle, Toolbar]
|
|
})
|
|
export class SecondPage {
|
|
constructor(
|
|
nav: NavController,
|
|
params: NavParams
|
|
) {
|
|
this.nav = nav;
|
|
this.params = params;
|
|
|
|
console.log('Second page params:', params);
|
|
}
|
|
|
|
pop() {
|
|
this.nav.pop();
|
|
}
|
|
|
|
push() {
|
|
this.nav.push(ThirdPage);
|
|
}
|
|
|
|
}
|