mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
35 lines
853 B
JavaScript
35 lines
853 B
JavaScript
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
|
|
|
import {NavController, NavbarTemplate, Navbar, Content} from 'ionic/ionic';
|
|
|
|
|
|
@Component({selector: 'ion-view'})
|
|
@View({
|
|
template: `
|
|
<ion-navbar *navbar><ion-title>Third Page Header</ion-title></ion-navbar>
|
|
|
|
<ion-content class="padding">
|
|
|
|
<p>
|
|
<button class="button" (click)="pop()">Pop (Go back to 2nd)</button>
|
|
</p>
|
|
|
|
<f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f>
|
|
<f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f><f></f>
|
|
|
|
</ion-content>
|
|
`,
|
|
directives: [NavbarTemplate, Navbar, Content]
|
|
})
|
|
export class ThirdPage {
|
|
constructor(
|
|
nav: NavController
|
|
) {
|
|
this.nav = nav
|
|
}
|
|
pop() {
|
|
this.nav.pop()
|
|
}
|
|
}
|