I've got angular2-seed-based angular 2 app. I've got following angular/rx code:
this.http.get(...).map((res) => res.json()).publishReplay().refCount();
I use
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/publishreplay';
to import all operators separately. But it seems there's no file to import refCount operator... or I am missing something. I'm pretty sure there should be such file, maybe it's stored in a different location.
The brute force solution, the only I've managed to get working, is very brutal:
import 'rxjs';
I'm using rxjs v5