mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +08:00
rename Router to Router_OLD
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
|
||||
import {IonicView, IonicConfig, IonicApp} from 'ionic/ionic';
|
||||
import {NavParams, Routable, Router, NavController} from 'ionic/ionic';
|
||||
import {NavParams, Routable, Router_OLD, NavController} from 'ionic/ionic';
|
||||
|
||||
import {SecondPage} from './second-page'
|
||||
|
||||
@ -40,7 +40,7 @@ export class FirstPage {
|
||||
console.log('config', config)
|
||||
|
||||
// TODO: Shouldn't have to do this
|
||||
Router.setNavController(nav);
|
||||
Router_OLD.setNavController(nav);
|
||||
|
||||
this.nav = nav;
|
||||
this.val = Math.round(Math.random() * 8999) + 1000;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
||||
|
||||
import {IonicView, Routable, Router, NavController, NavParams} from 'ionic/ionic';
|
||||
import {IonicView, Routable, Router_OLD, NavController, NavParams} from 'ionic/ionic';
|
||||
import {ThirdPage} from './third-page';
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ export class SecondPage {
|
||||
params: NavParams
|
||||
) {
|
||||
// TODO: Shouldn't have to do this
|
||||
Router.setNavController(nav);
|
||||
Router_OLD.setNavController(nav);
|
||||
|
||||
this.nav = nav;
|
||||
this.params = params;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {Component} from 'angular2/src/core/annotations_impl/annotations';
|
||||
|
||||
import {IonicView, Router, Routable, NavController} from 'ionic/ionic';
|
||||
import {IonicView, Router_OLD, Routable, NavController} from 'ionic/ionic';
|
||||
|
||||
|
||||
@Component({selector: 'ion-view'})
|
||||
@ -22,7 +22,7 @@ export class ThirdPage {
|
||||
this.nav = nav
|
||||
|
||||
// TODO: Shouldn't have to do this
|
||||
Router.setNavController(nav);
|
||||
Router_OLD.setNavController(nav);
|
||||
}
|
||||
|
||||
pop() {
|
||||
|
Reference in New Issue
Block a user