Unsinkable Sam
Unsinkable Sam

Reputation: 4247

Angular HttpClient vs Angular Http

The introduction of the HttpClient API in angular 4.1 along with the other Http API is confusing.

They both serve the same purpose and yet they are put in 2 separate packages.

Is there a possibility that Http gets deprecated in favor of HttpClient (similarly to what happened with Renderer and Renderer2)?

Has there been any announcement from the angular team on this?

P.S: Please note that my question concerns only the deprecation possibility of Http, and not any technical implementation related to HttpClient.

Upvotes: 0

Views: 749

Answers (1)

tlt
tlt

Reputation: 15211

Not that there is possibility but HttpModule will get deprecated in favour of new HttpClient. And yes, you should either start using HttpClient right away if you are starting new project or migrate to it if you have older projects that use HttpModule

https://github.com/angular/angular/commit/37797e2

Upvotes: 2

Related Questions