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
Contributor

@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.
@dancancro
Copy link

@dancancro dancancro commented Nov 16, 2017

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

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Sep 12, 2019

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.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants