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.
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!