Skip to main content

All Questions

Tagged with
0 votes
2 answers
279 views

Angular sorting observable data after http request

I'm new to using observables and am starting to learn about declarative programming. I have a situation where I have an observable that gets data from a http request. I know can sort this data using ...
Steve's user avatar
  • 51
0 votes
1 answer
43 views

how to save an object form a observable

i created a http.get request in angular that returns an observable findUserByEmail(email: string): Observable<User> { return this.httpClient.get<User>(this.authBaseUri + '/users/' + email);...
Max's user avatar
  • 21
0 votes
0 answers
101 views

Angular http client observable not emitting in development mode (but request is successful and response received). Emitting in production

I have a very simple call to an express function hosted in firebase cloud function: checkContactExistByEmail(email: string): Promise<boolean> { const url = `${CRM_API_URL}/${CRM_API_ENDPOINTS....
Paolo De Laurentiis's user avatar
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 ...
Python_Slayer's user avatar
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 ...
Ayan Mondal's user avatar
-1 votes
1 answer
51 views

Handling HTTP response via. Observable

Suppose if I want to get a JSON data from a HTTP GET request using observable: this.getJSON().subscribe(response => { for (let item of response) { // ... iterate array } }); ...
user963241's user avatar
  • 7,068
-3 votes
1 answer
136 views

Property 'isAdmin' does not exist on type 'User'.ngtsc(2339)

<td>{{ user.isAdmin }} &nbsp;&nbsp;&nbsp;&nbsp;</td> I intended to add the isAdmin field with RxJS to the User interface, in the function down below (file is user.service....
MyNameIsJeff's user avatar
0 votes
1 answer
365 views

Angular HTTP request returns undefined the first time

I have a service with such a HTTP request: ` login(email:any,password:any){ this.http.post<{token:string}>('http://localhost:3000/login',{payload:{email,password}},{ ...
George Botnari's user avatar
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 ...
YL Chan's user avatar
  • 49
0 votes
1 answer
264 views

Angular observable receives data only once onInit

I am working my way through Moshs' Angular class building a simple shopping page. Since this tutorial is already quite old I had to work my way through the changes in bootstrap and angular and I did ...
Juergen's user avatar
0 votes
1 answer
250 views

Cannot read properties of undefined passing error when passing observable object NgModel

I am trying to pass an object to NgModel in my angular template but I am recieving the error "ERROR TypeError: Cannot read properties of undefined (reading 'boxName')" In my .ts file when I ...
William Treuel's user avatar
0 votes
2 answers
63 views

Unable to iterate through data got from http request in angular

movies.service.ts import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, of,tap } from 'rxjs'; @Injectable({ providedIn: 'root' }) ...
Anonymous's user avatar
1 vote
1 answer
84 views

Why the subscribe function does not populate my property?

I have a problem here, i want to populate my property with the data that i get from the backend, but i dont know why my subscribe function does not populate it, check my code: Here is my app.component....
Nikolas Trapp's user avatar
0 votes
1 answer
59 views

Cant Receive Nest Mongo Database JSON Array in Angular Component

I am doing a test run from my Nest backend connected to MongoDB/Mongoose, where everything is working between Nest and MongoDB Cloud using Postman. I am just clicking a button in an attempt to receive ...
Dan Bennett's user avatar
0 votes
3 answers
1k views

issues with return value from an observable subscription

I have a function getHash that retrieves a hash value that I need from a remote api server. I am using the following code for it, which uses the auth0 service to retrieve the jwt token, attach it to ...
QPTR's user avatar
  • 1,690

15 30 50 per page
1
2 3 4 5
��
15