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,22 +1,21 @@
import {Component, View, Parent} from 'angular2/angular2'
import {Nav} from 'ionic/ionic'
import {NavController} from 'ionic/ionic'
import {SecondPage} from 'pages/second-page'
@Component({
selector: 'first-page'
})
@Component()
@View({
templateUrl: 'pages/first-page.html',
directives: []
})
export class FirstPage {
constructor(
@Parent() viewport: Nav
nav: NavController
) {
this.viewport = viewport
this.nav = nav;
}
nextPage() {
this.viewport.push(SecondPage)
push() {
this.nav.push(SecondPage);
}
}