import { Observable, of } from \"rxjs\"; // And if I try to return like this return Observable.of(this.purposes);
I am getting an error stating
To avoid black-list linting of the rxjs, import them like this:
import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of';