There is a lot of questions and comments on this topic but I have a more specific question and it may seem stupid to ask but id like to be sure.
I've read that you do not need to unsubscribe from HttpClient
calls in angular as it will automatically do this.
But if I had a separate service that had this function:
SERVICE
get() {
return this.httpClient.get('someurlhere');
}
And then had a component consume it like this:
COMPONENT
this.service.get().subscribe(() => {});
Would I then need to unsubscribe as the subscription is now in the component?
Keen to know if this makes any difference at all.