Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
78 views

Today, I noticed Copilot is adding .pipe(map(resp => resp)); in every single HttpClient call in Angular. return this.httpClient.get<ICustomer>('url'); // Rather than - Copilot one return this....
Ali Adravi's user avatar
2 votes
1 answer
131 views

httpResource got released as an experimental feature in Angular 19.2. The httpResource uses the HttpClient under the hood. So I was hoping, I would be able to pass all the options I could pass to the ...
T. Jami's user avatar
  • 1,147
0 votes
1 answer
179 views

I have an chatbot app built using Angular 18 (Standalone), it allows the users to submit questions where the responses are streamed back using Angular's HTTPClient and then displayed in the UI. ...
meji's user avatar
  • 1,108
1 vote
1 answer
81 views

I have an API (Node.js) and an Angular frontend. Now I want to loop through the data and display it. Therefore I perform an HTTP Request to the backend and get back an Observable which i then want to ...
donbolli's user avatar
1 vote
1 answer
211 views

I'm using Angular (v20) with Signals and httpResource from @angular/common/http to manage my user's state and authentication. My AuthService exposes a currentUserResource that loads user information ...
erwan's user avatar
  • 453
1 vote
1 answer
53 views

Imagine the situation where you provide any lib to client. Simple scenario, spinner interceptor which needs spinner service. In old way it was possible to: providers: [ { provide: ...
turtle's user avatar
  • 41
0 votes
1 answer
72 views

I have to make a couple of optional calls to upload files to get ids before I can send a post to a different route with those file ids. const body = ... const updateFile1Reference = map((file: File | ...
lostintranslation's user avatar
2 votes
1 answer
549 views

I am creating a blog page, that fetches an article. I am using SSR/SSG. I have problems using input signals and the new httpResource. Neither response1 nor its alternative response2 work. export class ...
Tilli85's user avatar
  • 55
1 vote
1 answer
79 views

I have a weird behavior with my requests. If the request throw an error, I automatically get a second one launched Here is an example of my request : this.http.post(environment['url'] + '/ws/verifier/...
Nathan30's user avatar
  • 1,093
-1 votes
1 answer
390 views

I am learning about httpResource and I can notice that the httpResource signal is not firing when the signal used to generate the URL is changed. Angular.dev - HttpResource Docs Below is a simple ...
Naren Murali's user avatar
  • 66.1k
2 votes
1 answer
65 views

Trying to make a simple POST call but getting the error: TypeError: Cannot read properties of undefined (reading 'length') at HttpHeaders.applyUpdate (http.mjs:222:27) at http.mjs:195:58 ...
dcp3450's user avatar
  • 11.2k
1 vote
1 answer
68 views

Recently i learnt, its best advice to always create single instance of httpClient and reuse it for service lifetime in-order to avoid socket exhaustion, which makes sense, this got me think, in my ...
Destiny Ant's user avatar
1 vote
1 answer
84 views

I'm using Angular 18 with TanStack Angular Query and have a question about handling observables in the queryFn. In my queryFn, I'm using lastValueFrom() with an HTTP request like this: queryFn: () =&...
Eternal Sunshine's user avatar
0 votes
1 answer
41 views

I have an interceptor that is supposed to refresh an access token if it's expired and continue the request with the new token, but its just looping a lot (not infinitely, something is stopping it ...
Symtax's user avatar
  • 25
0 votes
0 answers
23 views

I'm working on an Angular project and I have a form where I'm trying to prevent the page from refreshing when the "Select" button is clicked. Below is the relevant part of my component and ...
Anonymous's user avatar
1 vote
2 answers
131 views

I have an HTTP call that does a switchMap to a Promise<boolean>. If that promise returns false, I need it to close the observable. Here is some example code private method2() : Observable<...
Wouter Vandenputte's user avatar
0 votes
1 answer
192 views

I currently have the issue that my HTTP requests are stuck in a "pending" state (for more than 10 seconds until it starts the request). This issue is especially common if I navigate to other ...
Razzer's user avatar
  • 891
0 votes
1 answer
151 views

I'm working in a personal project, using angular, but I receive the following error all the time: NullInjectorError: R3InjectorError(Environment Injector)[_HttpClient->_HttpClient]: ...
Semicolon's user avatar
  • 137
0 votes
0 answers
78 views

I have a JavaScript Date object that is a property of an object that I want to send with an HTTP Post request. But the problem is that it is serialized using my locale, whereas I need it to be ...
Wouter Vandenputte's user avatar
0 votes
1 answer
242 views

I just started to learn Angular (using Version 19). So far the work with HttpClient goes on quite well. I've tried all kinds of requests with my backend (which is a Spring Boot application), all ...
user29062502's user avatar
-1 votes
1 answer
89 views

When I run the code below locally it works fine. When it is pushed to server (AWS Amplify) it fails to work correctly. In the console there is an error: ERROR Error: Invalid HTML: could not find <...
Matthew Coatney's user avatar
1 vote
1 answer
149 views

In angular 18, I have to read a json file using HTTP client. I cannot predict the hosted URL. The site may be hosted in two or three level sub folder domain names. How can I read the json files from ...
Ragesh MK's user avatar
1 vote
3 answers
124 views

I have an Angular app that uses HttpClient for API calls. These return Observables of data types that I can use for various purposes, i.e. an Observable<Widget[]> can be used to display a list ...
workerjoe's user avatar
  • 2,765
1 vote
2 answers
172 views

I want to use a simple method to check for internet connectivity. We have a file hosted on a server and I simply want to check that we can see it. The file contains: { "status": "...
Rob Mousley's user avatar
1 vote
1 answer
53 views

Why is the race object not being saved in the database when using my Angular app, but it works correctly via Postman? ´Hallo, I'm developing an application with Spring Boot and Angular. I have a Puppy ...
IRahi's user avatar
  • 17

1
2 3 4 5
32