initial version of switching with animations. needs work for logic

This commit is contained in:
Andrew
2015-04-01 18:07:52 -06:00
parent c20e510147
commit 48f7d6bd26
18 changed files with 280 additions and 178 deletions

View File

@ -0,0 +1,23 @@
import {Component, Template, Parent} from 'angular2/angular2'
import {NavViewport} from 'ionic2/components'
import {View} from 'ionic2/components/view/view'
import {SecondPage} from 'app/pages/second-page'
@Component({
selector: 'first-page'
})
@Template({
url: 'pages/first-page.html',
directives: [View]
})
export class FirstPage {
constructor(
@Parent() viewport: NavViewport
) {
this.viewport = viewport
}
nextPage() {
this.viewport.push(SecondPage)
}
}