in Angular by
How do Observables differ from Promises?

1 Answer

0 votes
by

As soon as a promise is made, the execution takes place. However, this is not the case with observables because they are lazy. This means that nothing happens until a subscription is made. While promises handle a single event, observable is a stream that allows passing of more than one event. A callback is made for each event in an observable.

Related questions

0 votes
asked May 17, 2020 in Python by sharadyadav1986
0 votes
asked Sep 11, 2021 in AWS Access Management by SakshiSharma
0 votes
asked Sep 16, 2020 in Agile by Robindeniel
...