Categories
Javascript

Do We Need to Unsubscribe Angular HttpClient?

Is there any way we can unsubscribe Angular HttpClient manually? Fortunately, yes we have! But we don’t need to unsubscribe it. Instead, HttpClient observes until getting a response from API. And, once it gets the response, HttpClient unsubscribes automatically. Https use AsyncPipe for the response and the AsyncPipe subscribes to an Observable. It returns the […]