External: Observable

Observable

RxJS Observable.
Source:
See:

Methods

subscribe(onNext, onError, onNext)

Subscribes to the observable.
Parameters:
Name Type Description
onNext function the callback called for each element in the sequence.
onError function the callback called upon exceptional termination of the sequence.
onNext function the callback called upon graceful termination of the sequence.
Source:
See:
Example
observable.subscribe(
    function (x) { console.log('New item', x); },
    function (err) { console.error(err); },
    function () { console.log('Completed'); }
);