I'm probably missing something simple, but trying to use the new Component Router I can't get VS Code to recognize it.
I changed all my @angular references in package.json to 2.0.0-rc.2; ran npm install and VS Code doesn't like my imports:

When I navigate to the @angular/router folder in node_modules, and inspect the index.d.ts I see all the references for the RC1 router. Removed the @angular folder and installed again, same result.
For the new release of angular rc2. The version of router to install is
"@angular/router" : "3.0.0-alpha.6" or
"@angular/router" : "3.0.0-alpha.7"
The repo for the router is at https://github.com/angular/vladivostok . The docs on the site https://angular.io/docs/ts/latest/guide/router.html are on alpha.6. I would advice to go through the changelog to know about breaking changes when using alpha.7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With