Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
* Promise vs Observable | |
* Promise | |
* Single async event that can either complete or fail once. | |
* Can be used with async/await keywords. | |
* Observable | |
* Can emit multiple events async. | |
* Offers a bit more control over the async task, for example cancelling. | |
* Cannot be used with async/await keywords. | |
* Think of Observables as a stream of data instead of an async task. | |
* Observable is the default used in Angular, but promises are still fine to use. |