Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecate @angular/http in favor of @angular/common/http #18906

Closed
wants to merge 1 commit into from

Conversation

alxhub
Copy link
Member

@alxhub alxhub commented Aug 28, 2017

As of 5.0, @angular/http is deprecated. @angular/common/http will
be the official HTTP API in Angular going forward.

As of 5.0, @angular/http is deprecated. @angular/common/http will
be the official HTTP API in Angular going forward.
@mhevery mhevery added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Aug 28, 2017
@mhevery mhevery closed this in 72c7b6e Aug 28, 2017
ocombe pushed a commit to ocombe/angular that referenced this pull request Aug 29, 2017
…ar#18906)

As of 5.0, @angular/http is deprecated. @angular/common/http will
be the official HTTP API in Angular going forward.

PR Close angular#18906
@dancancro
Copy link

Any tips on making the changes? I have errors concerning

BaseRequestOptions
Headers
Jsonp
JsonpModule
MockBackend,
MockConnection
RequestOptions
RequestOptionsArgs
Response
ResponseOptions
URLSearchParams
XHRBackend

I found this one
from https://medium.com/spektrakel-blog/angular-httpclient-enforces-immutability-dad161d8714b

// old
let params = new URLSearchParams();
params.set(`user`, user);
params.set(`password`, password);

// new
const params = new HttpParams()
  .set(`user`, user)
  .set(`password`, password);

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants