Categories

Nov 24, 2019 in Angular

Q: Differentiate between Observables and Promises.

1 Answer

Nov 24, 2019

Observables are lazy, which means nothing happens until a subscription is made. Whereas Promises are eager; which means as soon as a promise is created, the execution takes place. Observable is a stream in which passing of zero or more events is possible and the callback is called for each event. Whereas, promise handles a single event. 

Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

Madanswer
Jan 15 in Angular
Jan 6 in Angular
Jan 6 in Angular
...