I have an angular2-meteor project.
I tried to use RxJS, so I added these in my code:
import {Observable} from 'rxjs/Observable';
import 'rxjs/Rx';
But when I run it, it shows:
Cannot find module 'rxjs/Observable'.
Do I need install any package from Atmosphere?
You should this import:
instead of this one:
I don't Atmosphere but this package is what you define in the
package.json
file:You need it to make work Angular2. For example class
EventEmitter
class extends theSubject
class that is part of the rxjs library...