nav updates

This commit is contained in:
Adam Bradley
2015-05-04 13:34:00 -05:00
parent b4e66c3f6f
commit e315ebc25f
15 changed files with 182 additions and 183 deletions

View File

@ -1,21 +1,22 @@
import {Component, View, Parent} from 'angular2/angular2'
import {Nav} from 'ionic/components'
import {NavController} from 'ionic/components'
import {ThirdPage} from 'pages/third-page'
@Component({
selector: 'second-page'
})
@Component()
@View({
templateUrl: 'pages/second-page.html',
directives: []
templateUrl: 'pages/second-page.html'
})
export class SecondPage {
constructor(
@Parent() viewport: Nav
nav: NavController
) {
this.viewport = viewport
this.nav = nav
}
pop() {
this.viewport.pop()
this.nav.pop();
}
push() {
this.nav.push(ThirdPage);
}
}