There and back again

This commit is contained in:
Max Lynch
2015-06-17 10:01:34 -05:00
parent d509ef4d5a
commit f502ece0d8

View File

@ -1,7 +1,7 @@
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations'; import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view'; import {View} from 'angular2/src/core/annotations_impl/view';
import {NavController, NavPop, NavParams, NavbarTemplate, Navbar, Content} from 'ionic/ionic'; import {Routable, NavController, NavPop, NavParams, NavbarTemplate, Navbar, Content} from 'ionic/ionic';
import {ThirdPage} from './third-page'; import {ThirdPage} from './third-page';
@ -36,6 +36,8 @@ export class SecondPage {
this.params = params; this.params = params;
this.val = Math.round(Math.random() * 8999) + 1000; this.val = Math.round(Math.random() * 8999) + 1000;
SecondPage.router.invoke(this);
console.log('Second page params:', params); console.log('Second page params:', params);
} }
@ -84,3 +86,7 @@ export class SecondPage {
} }
} }
new Routable(SecondPage, {
url: '/second-page'
})