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
base: master
from

Conversation

Projects
None yet
5 participants
@alxhub
Contributor

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.

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

@googlebot googlebot added the cla: yes label Aug 28, 2017

@mhevery mhevery closed this in 72c7b6e Aug 28, 2017

ocombe added a commit to ocombe/angular that referenced this pull request Aug 29, 2017

feat: deprecate @angular/http in favor of @angular/common/http (#18906)
As of 5.0, @angular/http is deprecated. @angular/common/http will
be the official HTTP API in Angular going forward.

PR Close #18906

@jscharett jscharett referenced this pull request Sep 15, 2017

Closed

Angular 4.3+ support #53

@dancancro

This comment has been minimized.

Show comment
Hide comment
@dancancro

dancancro 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);

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment