Questions tagged [angular4-httpclient]

Use this tag only for questions related to the HttpClient service included in HttpClientModule of Angular version 4

The HttpClient service is included in HttpClientModule of Angular version 4. HttpClient can be used for establishing an HTTP communication performing requests and processing responses.

220 questions
-1
votes
2 answers

Empty response in Angular 4 from java backend

I'm new to Angular and I have a problem. I want to get data to my graph from my spring boot backend. I send a GET request from my Angular App and I receive empty response despite seeing in the console that it is not empty. Could you help me? My…
-1
votes
1 answer

How to store get response data in angular 5 with JWT Token

getEmployeeList():Observable{ return this.http.get('moi/employee/getEmp', AuthService.getHttpOptions()); } and my AuthService.getHttpOptions() method is: public static getHttpOptions(): any {'' var httpOptions = { …
-1
votes
1 answer

Angular 4 Http req, get text body from HttpResponse

I am working on an Angular 4 application using Spring Boot. Basically right now I have a service that upload a file from my Angular app to my Spring Boot server. I want to print in the Angular logs the message from the ResponseEntity object that I…
Logan Wlv
  • 3,274
  • 5
  • 32
  • 54
-1
votes
1 answer

Unable to get the HTTP Response Code from Angular Service

I am using Angular 4 as frontend & Django REST Framework (DRF) as backend in my project. From the DRF end I am returning both the Response JSON & HTTP Response Code in form of a response tuple Response(data=vJSON, status=vStatus), from the view…
-1
votes
1 answer

HttpErrorResponse in Angular 5 HttpClient get Request

I need to fetch data from an endpoint that require authentication (login). Once logged in json object is shows up. I am using HttpClient module of angular to get data like this. return…
Umair Jameel
  • 1,573
  • 3
  • 29
  • 54
-1
votes
2 answers

Http Get Response Updates HTML but giving undefined error in console

When I am updating my html with the response Obj using HttpClient it updates the values but gives multiple errors. File Name - auth-service.ts. import { any } from 'codelyzer/util/function'; import { Injectable } from '@angular/core'; …
-2
votes
1 answer

How to implement Session storage in Angular 4

Working in a e-Commerce Application ,for that I want to implement session storage ,I want to know about how to implement the session storage in Angular 4 and what are the step by steps to achieve this. Please guide me to implement the session…
Code Hunter
  • 153
  • 1
  • 3
  • 12
-2
votes
1 answer

How to make synchronous http calls in angular 4

I have an Angular 4 login Application. I want login synchronous operation but asynchronous ? Can you help me? data.service.ts: login(userName: string,pwd: string): Promise { const url =`loginLdap/${userName}&${pwd}`; return…
Altarian
  • 21
  • 2
-2
votes
1 answer

laravel 5.5 passport with angular 4

I need to do the Laravel Passport authentication for API and also need Angular 4 HTTP client with the canActive route. Please refer me the reference site or GitHub projects.
Balachandiran
  • 661
  • 1
  • 8
  • 15
-4
votes
2 answers

angular 2/4: 405 (Method Not Allowed)

Inside my logincomponent this.authenticationService.login('user', 'password').subscribe(comments => { alert('success'); }); Inside my AuthService: login(username: string, password: string) { let headers = new Headers({…
indra257
  • 66
  • 3
  • 24
  • 50
1 2 3
14
15