• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Angular HttpClient is not executing

Resolved: Angular HttpClient is not executing

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

So I have the following function. It is executed until the first console.log, but not further. I checked network traffic, and the API call is never executed, but i don’t know why.
Has anyone any idea why this function is not working? I am using a similar function for updating and it is working flawlessly, But the delete function is not.
I am a beginner with angular, maybe there is a simple solution for this.

Answer:

I looks like you just forget to subscribe the observable: deleteReward(1) – does not work, deleteReward(1).subscribe() – should work

If you have better answer, please add a comment about this, thank you!

angular angular-httpclient rxjs
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: VBA – Applying border around the areas with value/text

01/04/2023

Resolved: How can I implement a function depending on picked up items?

01/04/2023

Resolved: Azuer Service Bus SDK not receiving the specified messages

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.