I am trying to make routing in my angular2 application. I just tried to follow this link.
But in the app.routing.ts
in line:
import { Routes, RouterModule } from '@angular/router';
It complains with:
node_modules/@angular/router/index"' has no exported member 'Routes'.
and
node_modules/@angular/router/index"' has no exported member 'RouterModule'.
Here is my package.json
file:
"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/forms": "0.2.0",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/router": "^3.0.0-alpha.7",
"es6-shim": "0.35.1",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.26",
"zone.js": "0.6.12"
},
As you see, i am using "@angular/router": "^3.0.0-alpha.7",
, but it does not help me.