I'm fairly new to observables and according to this article. The examples below leaks memory. However, I saw tonnes of tutorials online showing examples like this.
someObservable.subscribe(data => {
// do something
});
Does the code above leak memory? Do we always have to unsubscribe? How about http calls too?
this.http.get<Any>('someurl').subscribe(response => {
// do something
});
What are the general best practices for observables?