Disposing Observables
Learn how to unsubscribe from Observables to release the memory resources held by observable, which are not released by default.
We'll cover the following...
In the previous sections, you were able to see how powerful Observables really are. But hang on, there is more.
Contrary to promises, which serve as a one-time shot, Observables run once they are created, and that’s it.
Imagine if we created a promise for an HTTP call that took too long to respond or didn’t respond at all, and we navigated to another page in the meantime. What would happen to the memory in this case? You may think that ...