I am having issue with importing Observable.of
function in my project. My Intellij sees everything. In my code I have:
import {Observable} from 'rxjs/Observable';
and in my code I use it like that:
return Observable.of(res);
Any ideas?
I am having issue with importing Observable.of
function in my project. My Intellij sees everything. In my code I have:
import {Observable} from 'rxjs/Observable';
and in my code I use it like that:
return Observable.of(res);
Any ideas?
In
rxjs
v6,of
operator should be imported asimport { of } from 'rxjs';