Nov 24, 2019 in Angular
Q: Differentiate between Observables and Promises.

1 Answer

0 votes
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

+1 vote
Jan 15, 2020 in Angular
...