top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Observable in Angular? How its work based on vanilla java script?

0 votes
436 views
What is Observable in Angular? How its work based on vanilla java script?
posted Jun 11, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

answer Jun 29, 2018 by Amarvansh
...