Yes, it seems as if the tutorial and the npm package is really outdated,
I have this package.json, and it works not perfectly, but it works as it’s intended
package.json
{
"name": "app",
"private": true,
"scripts": {
"start": "meteor run"
},
"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": "^3.0.0-alpha.5",
"angular2-meteor": "^0.5.5",
"angular2-meteor-auto-bootstrap": "^0.5.5",
"angular2-meteor-polyfills": "^0.1.1",
"meteor-node-stubs": "~0.2.0"
}
}
tsconfig.json
{
"compilerOptions": {
"experimentalDecorators": true,
"module": "commonjs",
"target": "es5",
"isolatedModules": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"removeComments": false,
"noImplicitAny": false,
"sourceMap": true
},
"filesGlob": [
"client/**/*.ts",
"server/**/*.ts",
"typings/**/*.d.ts"
],
"exclude": [
"node_modules"
]
}
Check if it works correctly for you, for me it’s working, but it’s using @angular/common@2.0.0-rc.1 and @angular/router@3.0.0-alpha.5 when the actual angular version is @angular/router": “^3.0.0-alpha.5”, and the router is @angular/router": “^3.0.0-alpha.5”, I think
This is the workaround I found for it, I guess community should start developing it, rather than @Urigo since it looks as he had stop with the developement of angular 2-meteor
Also, as I sidenote I would like to add that angular2-meteor is still using the deprected router, so the RouteConfig you have on your project right now is probably incorrect, you’ll need to change it. You can do this by reading this, as it says in the docs:
“The Component Router is in alpha release. This is the recommended Angular 2 router and supersedes the earlier deprecated beta and v2 routers.”
For more info check Angular 2 latest Typescript docs (angular.io) and Angular 2 repository changelog (github.com)
If you have any questions, just ask!
Miguel Rodriguez - mmiguerodriguez@gmail.com