mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
24 lines
554 B
JavaScript
24 lines
554 B
JavaScript
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {NavController, Toolbar} from 'ionic/ionic';
|
|
import {SecondPage} from './second-page';
|
|
|
|
|
|
@Component({selector: 'ion-view'})
|
|
@View({
|
|
templateUrl: 'pages/first-page.html',
|
|
directives: [Toolbar]
|
|
})
|
|
export class FirstPage {
|
|
constructor(
|
|
nav: NavController
|
|
) {
|
|
this.nav = nav;
|
|
}
|
|
|
|
push() {
|
|
this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] }, { animation: 'ios' });
|
|
}
|
|
}
|