ionic router update

This commit is contained in:
Adam Bradley
2015-08-21 23:04:23 -05:00
parent 5b5e32ded5
commit 26e0117a3f
18 changed files with 259 additions and 681 deletions

View File

@@ -1,25 +1,12 @@
import {App} from 'ionic/ionic';
import {App, NavController} from 'ionic/ionic';
import {FirstPage} from './pages/first-page';
import {SecondPage} from './pages/second-page';
import {ThirdPage} from './pages/third-page';
@App({
routes: [
{
path: '/firstpage',
component: FirstPage,
root: true
},
{
path: '/secondpage',
component: SecondPage,
},
{
path: '/thirdpage',
component: ThirdPage,
}
]
template: '<ion-nav [root]="root"></ion-nav>'
})
class MyApp {}
class E2EApp {
constructor() {
this.root = FirstPage;
}
}