Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
3 replies
46 views

I'm working with Angular 21 and I've added an interceptor like this: export const httpErrorInterceptor: HttpInterceptorFn = (req, next) => { return next(req).pipe( catchError((error: ...
KrzysiekYESS's user avatar
-3 votes
0 answers
32 views

getLiveGraph(uid: number, timeOut: number) { const config = this.configStore.getData(); return webSocket<LiveGraph>( `${config.wsBaseUrl}/subscriber/${uid}/live_graph/${timeOut}` ...
Tamil Vanan's user avatar
0 votes
0 answers
84 views

I could successfully migrate my Angular 20/Jasmine/Karma app to Angula r21/Vitest All my tests are running correctly, except the ones that use debounceTime from RxJS As a workaround for now, ny unit ...
Paulo Costa's user avatar
1 vote
0 answers
43 views

My app uses a facade service (singleton injectable) with signals for state management and RxJS for API calls. I'm experiencing an inconsistent UI update problem with a table after a successful create ...
Devcat's user avatar
  • 11
1 vote
1 answer
60 views

I'm working with Angular and have a scenario where a parent component passes an object (e.g., product) to a child component via property binding ([product]="product"). The child component ...
bambi's user avatar
  • 55
1 vote
1 answer
55 views

I'm trying to make 3 sequential GET requests using RxJS ajax operator. If one of the ajax requests throws an error(404 status code, for example), the rest won't execute. Is it possible pipeline to ...
Igor's user avatar
  • 374
-3 votes
1 answer
90 views

In Angular/RxJS, when should you use tap({ error }) and when catchError for side effects? How do you best separate the two logically or combine them? For example, does resetting the UI to its previous ...
Fabian Röhrle's user avatar
0 votes
1 answer
73 views

We are facing strange error in our application, some users facing problems with export functionality. Code below is what we have in our codebase: exportProcess = this.exportProcessSubject.pipe( ...
wujekkiryl's user avatar
1 vote
1 answer
98 views

I am trying to implement autosuggest functionality in my Angular app. The desired flow should be as: user types in something an autosuggest list will populate user may select one item from the list ...
Bhaswati Choudhury's user avatar
3 votes
1 answer
34 views

Suppose I want to do the following this.http.get(...).pipe( switchMap(httpResult => this.database.storeValue(httpResult.objectA) ).subscribe((databaseResult) => { // I have lost the ...
Wouter Vandenputte's user avatar
1 vote
1 answer
177 views

I spent hours reading about npm dependencies issues here, but I still don't really understand most dependencies error messages, they often don't really make sense and sometimes the dependency ...
Julien N's user avatar
  • 3,930
0 votes
1 answer
108 views

I am making an Angular frontend and got really unexpected behaviour after an HTTP DELETE call. When in component code I call directly HttpClient.delete, it logs 'test'. If I call the delete in a ...
Xavier Weber's user avatar
1 vote
2 answers
119 views

I have a stream of predicates I want to send to an API to execute. I only need to identify the first four (for example) that return true. Although I can send API requests in parallel, each API call is ...
Neill's user avatar
  • 1,176
4 votes
1 answer
84 views

I came across this implementation of the outsideCLick directive ngOnInit() { this._ngZone.runOutsideAngular(() => { fromEvent<MouseEvent>(document, DomEventsEnum.MOUSEDOWN, { ...
Dima Savenkov's user avatar
1 vote
1 answer
107 views

[ERROR] TS2740: Type '{}' is missing the following properties from type 'ExpenseModel[]': length, pop, push, concat, and 26 more. [plugin angular-compiler] src/app/modules/expenses/pages/expenses-...
Sampath's user avatar
  • 66.2k
1 vote
1 answer
175 views

I have an Angular 20+ application with a route /explore-developers that should load a list of developers from my backend API when the page is opened. I have an Angular 16 application with a route /...
User03's user avatar
  • 11
2 votes
2 answers
107 views

I need to make a series of calls to an API. Here is what should happen: Call 1: Make the first call which returns an ID. Call 2: Use the ID to make the second call. The second call will come back ...
jakeprime's user avatar
1 vote
1 answer
122 views

I have a component in my Angular project (v18.2.13) that has a reactive form to change a price field & an observable with the product info. I want to make a signal to know if the price form field ...
Oscar Saro's user avatar
1 vote
1 answer
106 views

I'm facing an issue when submitting the verifyPINForm form. In some cases, the request for verifyOtp is being sent twice at the same time, which is causing issues on the backend side. the component ...
Abdullah Islam's user avatar
1 vote
1 answer
232 views

I am trying to understand the new Angular resource API. One typical problem is to fetch several HTTP endpoints, combine the data and use it. My current approach looks like this: name = rxResource({ ...
Mo3bius's user avatar
  • 672
1 vote
1 answer
230 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
2 votes
1 answer
322 views

I recently tried upgrading my project from Angular 19 to Angular 20. Now Angular throws the following error for all my async pipes: Type 'unknown' must have a '[Symbol.iterator]()' method that returns ...
Steffen's user avatar
  • 4,309
0 votes
0 answers
52 views

I have a nested structure of components in form of JSON that I get from an API. componentStructure$ = apiCall(); The JSON looks like this: structure = { component, innerComponents: [{ ...
Raziel's user avatar
  • 140
2 votes
4 answers
102 views

I have some common code which needs to be executed as a callback in either of (if/else) aysnc function call. Following is the hypothetical snippet of my code. if(condition1) { asyncFun1()....
OwlR's user avatar
  • 471
2 votes
0 answers
98 views

I have an Angular(v20) standalone component that loads paged data from a server. I use a BehaviorSubject to manage query state (search text, category, pagination). Problem: Whenever I type even one ...
UnderPhp's user avatar
  • 388
0 votes
1 answer
45 views

I created a function which makes some text flowing: private createFlowingText(message: string): Observable<string> { const intrvl = interval(180); const text = from(message); ...
AlexB's user avatar
  • 4,684
4 votes
1 answer
58 views

I need to upload a list of files while ensuring no more than 5 files are uploaded simultaneously. While my code already limits concurrent uploads to 5, it waits for all 5 files in a batch to finish ...
rafaelpadu's user avatar
  • 1,856
2 votes
1 answer
47 views

Due to a bug in my code, I accidentally called next on a RxJs subscription in a way that the compiler wasn't able to catch. In essence though, here's a MCVE: import { Subject } from 'rxjs'; const sub ...
Carcigenicate's user avatar
0 votes
2 answers
78 views

Long story short, I have an async concurrency issue with an Authorization system. I'm using rxjs to do these operations with observables. In my application should be handled only one at a time that's ...
magg's user avatar
  • 65
1 vote
1 answer
86 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
87 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
148 views

This might be a common problem but somehow i keep hitting wall with it HTML @if(data$ | async; as data) { <span>{{data.status}}</span> } TS dataId = input.required<string>(); data$ =...
Aeseir's user avatar
  • 8,592
1 vote
1 answer
95 views

I have 2 form control text fields, one visible and the other disabled. Based on the value of the disabled field, I want to toggle buttons on visible text field. The value of the disabled field can be ...
bestfirstsearch's user avatar
2 votes
2 answers
168 views

I have an Angular 19 app and I am trying to add a route title resolver that gets the page title by looking up some data in the results of an Observable. The issue is that when the app first loads, the ...
Chris Barr's user avatar
  • 34.7k
1 vote
1 answer
167 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,407
1 vote
2 answers
70 views

I need the LAST emission to call signals.onResponse(), thus the tap, so that my deep chat ui completes and re-enables the submit button after last message. I have to hack deep chat and use the ...
DRNR's user avatar
  • 463
1 vote
1 answer
366 views

Our use case: in a component, we compute queries for data that should be fetched based on some config. I tried creating rxResource() within a compute to get the data - but also loading status and ...
Peter T.'s user avatar
  • 3,407
1 vote
2 answers
72 views

I'm working on an Angular (v18) SPA app. I have an API service with a get call: public get(route: string, params?: HttpParams): Observable<any> { const headers = { method: 'GET' }...
MRichards's user avatar
  • 145
2 votes
1 answer
94 views

I am using RxJS for subscriptions in Angular. I noticed that when I manually subscribe to an observable and store the Subscription, I can easily check if it was unsubscribed using .closed, especially ...
Shaiju T's user avatar
  • 6,653
2 votes
2 answers
83 views

I have an Angular component that shows a member variable of its TypeScript class. I subscribe to an rxjs Observable to update the value. I see that my rxjs Subscription is executed, but the new value ...
Martijn Dirkse's user avatar
0 votes
1 answer
73 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
1 vote
2 answers
107 views

I've been using Angular with RxJS for about a year and a half now. I feel pretty comfortable in most areas, but I'm struggling a bit with RxJS. Several times now I've found myself wanting to ...
commadelimited's user avatar
1 vote
1 answer
48 views

I'm handing errors in my Angular app using RxJS like this: public downloadInClient(fileName: string) {     return (source: Observable<Blob>) =>       source.pipe(         map((blob: Blob) =&...
CBD's user avatar
  • 107
2 votes
2 answers
65 views

My method works the way I want it to, however, the test is failing when I add the pipe(skip(1)) How do I test an observable with a pipeable skip. Here is my method: getSomething() { this.store....
John's user avatar
  • 179
2 votes
2 answers
115 views

I am struggling to understand the best way to implement nested calls to a API, using forkJoin (without using nested observables). I have three APIs: API to create student (/student/) API to add ...
Ben Halicki's user avatar
0 votes
1 answer
72 views

ngOnInit() { this.router.events.subscribe(event => { if (event instanceof NavigationEnd) { if (event.url === '/common/time') { this.zone.run(() => { ...
Dwarknight's user avatar
1 vote
1 answer
115 views

I am trying to display data using rxResource. However, data returned is always undefined. However, inspecting the network tabs shows the data is indeed being fetched and I'm just doing something wrong ...
kibet's user avatar
  • 435
2 votes
1 answer
80 views

I've written a http function that works using switch map to get the value from one http request and use it as a parameter in the second, but how do I return not only the final http request but also ...
bradrice's user avatar
  • 1,817
1 vote
1 answer
96 views

I have Angular service which is used in the Angular pipe. The job of that service is to do a HTTP request and fetch translations. Idea is to have a pipe which returns a Observable that only first ...
AlexBor's user avatar
  • 315
0 votes
1 answer
207 views

I have a DataHandler service that calls a database service and returns the value to the calling component. The database service returns an observable of an array, while I'd like the data handler to ...
Otto Abnormalverbraucher's user avatar

1
2 3 4 5
427