All Questions
294 questions
1
vote
1
answer
82
views
Is it possible to use an observable without subscribing?
Consulting articles and documentation, I saw that it is not possible to use an observable without subscribe, I have the following code in my service, why am I able to use the observable without ...
2
votes
1
answer
742
views
How to execute multiple API calls in parallel and process responses as they arrive in an HTTP service in Angular?
I have an HTTP service that receives responses which need to be utilized by multiple other APIs. I want to execute these API calls in parallel. Additionally, I do not want to wait for all the APIs to ...
1
vote
1
answer
503
views
Avoiding Duplicate Entries in Concurrent POST API Calls When Updating Shared Resource
I'm working on a web application where I encounter an issue with concurrent POST API calls leading to duplicate entries. The application processes entities that share a common identifier, and updates ...
1
vote
1
answer
120
views
One value behind on HTTP service request using observables
I have the below Angular Service making an http request using debounce time. Im struggling to make it work as it is one value behind, can you tell me what im doing wrong? Also how can i improve it?
...
3
votes
1
answer
378
views
Angular http request after another but only care about first one
I have a scenario where I want to call an API and, if returns 200, I want to call another API but I'm only interested in the response of the first API called. Something like this:
const http1$ = ...
0
votes
1
answer
54
views
RxJs - Combine multiple http request results to a single object
This is my first assistant call, so pls excuse me if I get some protocols wrong.
I can't seem to get this right.
I'm trying to loop over an array of urls get the result and add the result as a value ...
0
votes
1
answer
348
views
I'm sending out two http requests instead of one in Angular when I request data from the server for the state to change
I'm building a beginner application in Angular and I'm at the point where I'm getting some data back from a server and I've built the pagination for the data I recieve. Each click on a button (at the ...
0
votes
3
answers
169
views
Angualr, List is not loading dynamically with observable list
I am trying to make a quiz app where questions with answerrs will be given to the admin.The list is not loading dynamically.What i want is after the questioin is added the list will show automaticlly ...
0
votes
1
answer
609
views
Angular RxJS Subscribe to HTTP Request in HTTP Request
I want to make a singup function to get a token.
Function should work like that:
First I have to make a HTTP POST request passing login value to get "nonce" string
Second, after first is ...
-3
votes
1
answer
136
views
Property 'isAdmin' does not exist on type 'User'.ngtsc(2339)
<td>{{ user.isAdmin }} </td>
I intended to add the isAdmin field with RxJS to the User interface, in the function down below (file is user.service....
-1
votes
1
answer
31
views
Using rxjs to parse deep json attribute in the returned object
I use angular http.get method, but my return data is an object type, which has a json attribute, I want to get this json attribute list, how to do it?。。。。
I only want to get json data..
{
"errno&...
0
votes
3
answers
871
views
Need to do API calls on Array of data and get the response Angular
I want to implement a logic where if there is no network connectivity then i am storing the data in frontend in local storage and whenever got connected to network then I want to do api call on the ...
0
votes
0
answers
384
views
How to retry HTTP request when response in pending
I am making an HTTP request to the server to get a file upload status which takes a little time around 3 to 4 minutes. If the request is in the pending state or it has not returned the status of ...
1
vote
0
answers
43
views
Angular 2 not making a http call when
I have a custom event on which I need to fetch the account info. I see that the fetchAccountInfo function gets called from the HostListener but I don't see the call in network, instead the observable ...
0
votes
2
answers
576
views
Get property values from objects, do calculation, then map in the front end in Angular
I am using Angular 15. I want to get the property values from an array of objects, use the values to do calculation and then map them in the frontend. I had tried 3 different ways, I still can't get ...