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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted Jul 24, 2019, 7:32 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 17, 2019, 4:10 AM EDT
VikasRank #2,017 · 717 reputationPosted Jul 21, 2019, 10:51 PM EDT
Mohanraj KaliappanRank #1,605 · 978 reputationPosted Jul 22, 2019, 12:40 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jul 21, 2019, 11:59 PM EDT
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