difference between Observable and Promise in Angular
They both handle asynchronous calls in JavaScript, they both promise to “rescue us from the callback async hell”, so... it's only but logical to ask yourself: “What's the difference between observable and promise in Angular then?” When exactly should you be using one over the other? And why? And there are, indeed, clear differences in the way that these 2 “abstractions” handle asynchronous functionalities. Differences determining each one's specific use cases. But let's not sink even deeper into confusion and find some answers instead regarding...