Ionic2 @angular dependency in package.json


While creating a new project using “ionic start #appName# blank --v2 --ts” command.
So it shows

“dependencies”: {
"@angular/common": “^2.0.0-rc.1”,
"@angular/compiler": “^2.0.0-rc.1”,
"@angular/core": “^2.0.0-rc.1”,
"@angular/http": “^2.0.0-rc.1”,
"@angular/platform-browser": “^2.0.0-rc.1”,
"@angular/platform-browser-dynamic": “^2.0.0-rc.1”,
"@angular/router": “^2.0.0-rc.1”,

in package.json.

What is the command to create a new project using old version of ionic2 so that is get “angular2” instead of “@angular” and can use old RouteConfig


You shouldn’t do this.

It’s best to stay up to date with all the version so that way you’re not having to deal with old issues that could be solved in the latest releases.

I get that you want to use the Router, but for the time being, it’s not useable.


So for time being we are blocked as due to Router. So is there no work around to make it work?


there is no work around. Ionic’s own internal logic has disabled the router from working with nav-controller.