Hi all,
What is the Difference between Observables and Promises in Angular 2 or higher version.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jul 24, 2019, 11:32 PM
Mohanraj KaliappanPosted Jul 22, 2019, 4:40 AM
Amit MohantyPosted Jul 22, 2019, 3:59 AM
promise:
having one pipeline
usually only use with async data return
not easy to cancel
observable:
are cancellable
are retriable by nature such as retry and retryWhen
stream data in multiple pipelines
having array-like operations like map, filter etc
can be created from other sources like events
they are functions, which could be subscribed later on
VikasPosted Jul 22, 2019, 2:51 AM
Rajanikant HawaldarPosted Jul 17, 2019, 8:10 AM