I have an issue because err is returning a string instead of a HttpResponse. I am not sure why, the server returns the content type as "application/js ...
I have an issue because err is returning a string instead of a HttpResponse. I am not sure why, the server returns the content type as "application/js ...
I am currently getting some data from a dummy api, data from response starts from 1 and the index is currently starting from 0. How I can start the i ...
Template Typescript On method winServiceInfo first console.log(this.dataArrs) retuens Arrar(3) but the second console.log(this.dataArrs) returns ...
the first console.log(this.dataArrs) retuens Arrar(3) but the second console.log(this.dataArrs) returns Arrar(0). I understand that subscribe is an ...
On doing console.log of Api response I get undefined as output. Since I am new to angular your feedback and suggestions would be of great help. Here ...
I have a problem filling a Users autocomplete on first load. This is my UsersService: public users: User[] = []; constructor(private http: HttpClie ...
I am in the process of upgrading my project and need to change my api from @angular/http to @angular/common/http. I main question do I just need to ch ...
I made a http post request with my angular service and i'm waiting for a boolean return. But with the 204 http code response with no content, angular ...
This Error is coming when I am trying to show the data from an get api on html template using ngfor in angular ERROR Error: Cannot find a differ supp ...
I am writing a simple Angular application that calls to an external API for data. One of these API calls returns data in such a way: I have an Appo ...
I have a service like } and I call it in the TS file like } and I save the response and download it } My question is in the saveFile metho ...
If I have my headers set like this then I get a 415 returned from my API because the HTTP Request is sent with a content-type of text/plain If I pl ...
The response time of the API call varies between 2 and 30 seconds. After initializing the API call, if the API call will take more than five second ...
In angular, we use HttpClient to make HTTP calls which return an observable, if we wanna use promises we can use lastValueFrom/firstValueFrom. Let's ...
I am getting this error when I am calling the api via Angular. However, when I call it via Postman, I am getting the desired response. I dont know wha ...
I've built an Angular application with my coworkers making an ASP.NET backend API that I will call to access data. In the beginning, we've used the H ...
I made a very normal HTTP request to get one object from a JSON file. but I noticed I get all the file's data instead of the only needed object. follo ...
I'm trying to apply Angular HTTP put using reactive forms for the first time. My problem is when I apply the following code I get an error of 404. The ...
I am working with an API in an Angular NGRX app that requires I make multiple calls to get all the data I'm looking for. For example, I start off by r ...
So, I'm trying to make a request to an API (for example the SWAPI API) In my app.module : ... ... import { HttpClientModule } from '@angular/common/ ...