0

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.

2
  • 4
    Possible duplicate of Difference between HTTP and HTTPClient in angular 4? Commented Sep 7, 2017 at 8:53
  • The two questions are entirely different. I'm asking about the deprecation possibility and not about any technical implementation like in the link that you provided. Commented Sep 7, 2017 at 8:59

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.