I'd like to use RxJS's just
.
What I need it for is Observable.just(null)
, which can't be done with Observable.from()
.
I'm trying
import 'rxjs/add/operator/just';
But it's not present in where it should be - node_modules/rxjs/add/operator
, so this fails to compile.
How can I add this operator?
That depends on the version of Rx.js:
.just
method;.of
method.Like this: