Creating an Observable for Mock Data in Angular 2
Use
return Observable.of(new Object()).mapTo(MOCKDATA);`
The import statement is fine.
import {Observable} from "rxjs/Observable";
Also need to import the ts file for MOCKDATA
import {MOCKDATA} from "../path_to_mockdata";
Looks like
import {Observable} from "rxjs/Observable";
should be
import {Observable} from "rxjs/Rx";
See also Angular2 RxJS getting 'Observable_1.Observable.fromEvent is not a function' error