There are two http client in angular 5 one is in "@angular/http" and another one is in "@angular/common/http". What is the difference between them?
Asked
Active
Viewed 807 times
1 Answers
2
If you use Angular 4.3. or higher
- Http and
HttpModulefrom the@angular/httpare deprecated. - HttpClient and
HttpClientModulefrom the@angular/common/httpare the newer versions.
For differences you can check documentation.
Suren Srapyan
- 66,568
- 14
- 114
- 112