Top "Angular-httpclient" questions

Angular HttpClient is the new HTTP client of Angular since version 4.3 from the @angular/common/http package.

Catching errors in Angular HttpClient

I have a data service that looks like this: @Injectable() export class DataService { baseUrl = 'http://localhost' constructor( private httpClient: HttpClient) { } …

angular angular-httpclient
Adding a HTTP header to the Angular HttpClient doesn't send the header, why?

Here is my code: import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; logIn(username: string, password: string) { const url = …

angular http-headers angular-httpclient
Angular 4 HttpClient Query Parameters

I have been looking for a way to pass query parameters into an API call with the new HttpClientModule's HttpClient …

angular typescript http lodash angular-httpclient
Angular HttpClient "Http failure during parsing"

I try to send an POST request from Angular 4 to my Laravel backend. My LoginService has this method: login(email: …

angular typescript angular-httpclient
Difference between HttpModule and HttpClientModule

Which one to use to build a mock web service to test the Angular 4 app?

angular angular-httpclient angular2-http
Angular: How to download a file from HttpClient?

I need download an excel from my backend, its returned a file. When I do the request I get the …

angular typescript file blob angular-httpclient
Property 'json' does not exist on type 'Object'

I'm trying fetch data via REST with angular 2 HttpClient. I'm following the angular tutorial here https://angular.io/tutorial/toh-pt6 …

angular typescript angular-httpclient
Angular 4 Error: No provider for HttpClient

I am starting a new angular project with the CLI and am running into a no provider for HttpClient error. …

angular angular-httpclient
How to add headers to my Angular post request?

For a school project I need to make a simple login page with Angular. When a login button is clicked …

angular typescript angular-httpclient
Angular (5) httpclient observe and responseType: 'blob'

Context: I'm trying to download a binary file from a backend (that requires some data posted as json-body) and save …

angular angular-httpclient