Observables provide support for passing messages between publishers and subscribers in your application. Observables offer significant benefits over other techniques for event handling, asynchronous programming, and handling multiple values.
Observables are declarative—that is, you define a function for publishing values, but it is not executed until a consumer subscribes to it. The subscribed consumer then receives notifications until the function completes, or until they unsubscribe.
Observable is a JavaScript implementation of the observer pattern, modelled on Ruby's Observable module. ... In this implementation, the listeners/observers are functions, rather than objects.