mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
22 lines
419 B
JavaScript
22 lines
419 B
JavaScript
import {Component, View as NgView, Parent} from 'angular2/angular2'
|
|
import {Nav} from 'ionic/components'
|
|
import {View} from 'ionic/components/view/view'
|
|
|
|
@Component({
|
|
selector: 'second-page'
|
|
})
|
|
@NgView({
|
|
templateUrl: 'pages/second-page.html',
|
|
directives: [View]
|
|
})
|
|
export class SecondPage {
|
|
constructor(
|
|
@Parent() viewport: Nav
|
|
) {
|
|
this.viewport = viewport
|
|
}
|
|
pop() {
|
|
this.viewport.pop()
|
|
}
|
|
}
|