To run Angular 2 RC1 and Meteor 1.3 successfully, you need:
Remove your old Angular 2 if you are using Angular 2 Beta version: npm uninstall --save angular2
And run this to install Angular RC 1: npm install --save @angular/core @angular/common @angular/platform-browser @angular/platform-browser-dynamic @angular/router-deprecated
When you import, use new one:
Change import { Component } from 'angular2/core';
to import { Component } from '@angular/core';
Change import { bootstrap } from 'angular2/platform/browser';
to import { bootstrap } from '@angular/platform-browser-dynamic'; // use this if you do not use meteor features
or import { bootstrap } from 'angular2-meteor-auto-bootstrap'; // use this if you use meteor features
Check here for the rest of them.
Change *ngFor="#party of parties"
to *ngFor="let party of parties"
Also, for people who are using ng2-bootstrap and met problems,
the new version has some breaking changes too:
Be sure to use new ng2-bootstrap components names. Check here for new ng2-bootstrap components names.
I am planning to use Meteor+Angular2+Typescript+Ionic for my mobile app (hybrid cross platform app) but I am not sure whether should I wait for Angular2 official release or not because things are changing continuously as angular2 is coming closer to its stable version and I am not sure that whether learning resources will be available or not for such combination of technologies. Also I am not sure what kind of meteor packages I will able to use with angular2.
It will really be helpful for me if somebody help me in this thing.
Almost all high quality packages can be used perfect with Angular2-Meteor. Some packages related with Blaze cannot be used apparently, and we have our own from Angular side. So we don’t need them too.
Also, now since Meteor 1.3 supports NPM, tooooons of packages you can use from NPM directly. (You cannot feel how happy I am!!)
For me it is already quite stable.
Right now one thing I haven’t done anything with Universal Angular 2 for server rendering.
Another thing I haven’t done anything with file upload.
So you need wait others response.
I cannot give you any suggestion for Ionic, because I am not using it. Hope others can help you.
@Hongbo_Miao Thanks for answering my queries. I am going to use Meteor-angular2+Ionic for my mobile apps so I am hoping that good quality resources will be available whenever I’ll face any issues with these technologies in the future. I also want to be part of meteor and angular2 team but lets see how it goes.
If you don’t like too many files, ReactJS with Meteor seems to have the least files and SLOC for some basic things. Though in ReactJS they use JSX to embed some HTML in the JavaScript code, I found it a little more annoying if the blocks are larger.
Anyway I just tried templateUrl: './foo.html' with no luck. I suspecting something may be wrong with the import logic in the typescript package.
@Hongbo_Miao, I am facing issues related to route in Routing and Views chapter. It is throwing some error related to Router.registry() but I am not able to figure out that what is happening wrong here. I will request you and other people who are supporting that tutorial to verify all the steps again using angular 2 RC1.