I am trying to return an Observable from a service with mock data.
I am returning this from my service :
return Observable.of(new Object()).map(MOCKACCOUNT =>JSON.stringify(MOCKACCOUNT));
I get an error
Observable_1.Observable.of is not a function.
Am I missing some include? I am importing
import {Observable} from "rxjs/Observable";
Note: I was returning a mock promise prior but based on my understanding I would not be able to interpolate the value. For example {{returnFromServiceStoredInExportedClass.name}}