Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
79 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
0 votes
0 answers
66 views

In my hobby project, i created a SpringBoot & Angular application, where i recently added a "Download Center". The idea was that a user sometimes needs to download multiple files at once,...
Svhorsch's user avatar
2 votes
1 answer
133 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,149
1 vote
1 answer
224 views

I am using trying to create a small project based on Angular 20, where I provide front-end for data and charts from Fintacharts API, using SSR (Server-side Rendering), because CORS policies didn't ...
Denis Berezniuk's user avatar
0 votes
1 answer
192 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
0 answers
37 views

I have a problem with the management of an error for my API call in my Angular app: sendRequest(request: BookingRequest): Observable<any>{ const authorityCode = this.tableService.enteId; const ...
Lorenzo Bertolaccini's user avatar
1 vote
1 answer
85 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
0 votes
1 answer
85 views

In Angular 18, I want to return true or false whether a public PDF exist or not. For example, it should return true for : https://sigesbre.brgm.fr/files/fiches/MDO_AgenceEau/MDO_AgenceEau_FRGG015.pdf ...
Flyout91's user avatar
  • 867
1 vote
1 answer
225 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
160 views

This is actually a follow-up question of Is there a way to dynamically compute rxResource() or resource() in Angular (19) We have a list of queries that is computed based on some component state. We ...
Peter T.'s user avatar
  • 3,397
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
3 votes
2 answers
446 views

I'm using angular 19. I'm using the new resources to load data like so : // Skipping imports and decorators for simplicity export class ApiService { http = inject(HttpClient); public myResource = ...
Leogout's user avatar
  • 1,290
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
1k views

I'm trying to use the new Angular httpResource. So I created a service: @Injectable({ providedIn: 'root' }) export class MyService { resourceConfig = signal<Partial<ResourceConfig>>({})...
Jeanluca Scaljeri's user avatar
2 votes
1 answer
567 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
3 answers
300 views

Goal I'm using Angular with the new signals feature and the experimental HttpResource. I want to: Extract an id parameter from the route. Bind this id to a signal. Use that signal to fetch product ...
zerotohero's user avatar
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,101
0 votes
1 answer
87 views

Trying to validate timeout from db queries, not able to achieve it via HttpTestingController. Not sure how to design the UT. Where to add the timeout in this setup. it('test timeout', () => { ...
Arnab Mukherjee's user avatar
-1 votes
1 answer
394 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.2k
1 vote
1 answer
75 views

When a user logs in via an SSO they are redirected by to my auth page where I'm grabbing the authorization_code and attempting to authorize the user to grant access. let headers = new HttpHeaders(); ...
dcp3450's user avatar
  • 11.2k
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
371 views

I have a service with a signal for a selected language: export class LanguageService { languages = ['en-US', 'de-DE']; language = signal('en-US'); //Signal for the selected language } I read this ...
hankor's user avatar
  • 410
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
198 views

I am developing a Springboot/Angular application. I am running into an annoying issue where my backend is able to receive and parse credentials (in this case, a jwt) from fetch requests but is not ...
Josef Creations's user avatar
1 vote
1 answer
93 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
0 answers
73 views

I have an interceptor for refreshing an access token, when it doesn't refresh, everything's all good, but when it does, the unfortunate request that happened to pass through it when it decided to ...
Symtax's user avatar
  • 25
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
1 vote
1 answer
38 views

With rxjs 7.5.7, I return a promise when a polling http request will finally returns true after several false values, but takeUntil used is never called again. I tried to following code: return timer(...
magneticcore's user avatar
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
0 votes
1 answer
48 views

I have some Angular code using HttpClient, and I simply want to use the "post" method, with a particular payload and headers, with the "toPromise()" option. Yes, I realize ...
Darren Gates'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
1 vote
1 answer
253 views

I have an Angular v19 project. I have the following AuthInterceptor @Injectable() export class AuthInterceptor implements HttpInterceptor { private isRefreshing = false; constructor(private ...
Code Ratchet's user avatar
  • 6,077
0 votes
1 answer
205 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
0 answers
93 views

Client is running at http://localhost:4200/ and server listening on: http://localhost:5245 getting this error after restarting server as well **Error**: HttpErrorResponse {headers: _HttpHeaders, ...
Priyanka Joshi's user avatar
0 votes
1 answer
154 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
4 votes
1 answer
410 views

I'm trying to set up provideHttpClient in Angular v19 to use route-specific interceptors, but I'm encountering an issue where no requests are intercepted. My Setup: I have a default ApplicationConfig ...
Gykonik's user avatar
  • 686
0 votes
0 answers
80 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
-1 votes
1 answer
56 views

I am using angular and i am trying to connect with openfire, The connection established successfully, When I try to call get user using httpclient in angular. I got Cors error as below Access to ...
Kumaravel A's user avatar
0 votes
1 answer
251 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
0 votes
1 answer
56 views

I am submitting a request from a simple Angular app to test a Spring endpoint I have made. The same JSON is processed successfully when I submit it through Postman, so I suspect that there is ...
alexander acevedo'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
5 votes
2 answers
6k views

I am working on an Angular standalone application and encountering the following error when using HttpClient in my DataService: ERROR Error [NullInjectorError]: R3InjectorError(Standalone[...
user84's user avatar
  • 905
1 vote
1 answer
155 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
2 votes
1 answer
161 views

I wasn't able to solve it. I'm counting on your help. I have an Angular application and a library. In the library, I have a service where I inject HttpClient. I set HttpClient as a provider in the ...
Tomasz Jaworski's user avatar
1 vote
3 answers
125 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
1 answer
45 views

I have the following problem: I am trying to make a mew record in a mongoDB database using a call from an Angular frontend. For some reason when i initiate the POST request i dont get any kind of ...
Callistron's user avatar
1 vote
2 answers
175 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
2 votes
1 answer
111 views

I am implementing a loading spinner that runs for all my http requests via an HttpInterceptorFn using this blog post as a guide: https://blog.angular-university.io/angular-loading-indicator/ loading....
Asad Koths'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
0 votes
0 answers
31 views

I'm trying to add unit tests to legacy code and noticed that if the code uses "await" I need to call a tick or flushMicrotask between each httpTestingController's expect. Here is the ...
sdparker's user avatar
  • 101

1
2 3 4 5
32