Observable.throw replacement in rxjs 5.5.2

I’m still getting my head round 5.5 but it looks like now instead of importing throw use ErrorObservable.

// import { _throw } from 'rxjs/observable/throw';
import { ErrorObservable } from 'rxjs/observable/ErrorObservable';

ErrorObservable.create('error');

From this guide it looks like it has to be _throw to avoid a keyword clash (the rest of the video is good for getting started with 5.5)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)