The subscribe
method contains a second argument incase of error:
Rx.Observable.prototype.subscribe([observer] | [onNext], [onError], [onCompleted])
[observer] (Observer): The object that is to receive notifications.
[onNext] (Function): Function to invoke for each element in the observable sequence.
- [onError] (Function): Function to invoke upon exceptional termination of the observable sequence.
- [onCompleted] (Function)…
Top comments (0)