I don't know why this command runs properly but I can't find any log of calls in Fiddler...
let z = this.http.get('http://localhost:51158/api/User/TestIT?idUser=0')
The code pass into this step but If I try to catch all the http request using fiddler, I can't find any call...
Do you have idea on what is happening ?
Thanks
To initiate a request and receive a response you can add
map()
and.catch()
to return an Observable response from your method.Example Service:
Then subscribe to the Observable-returning method to execute the request:
Example Subscription
For a good starter example you can refer to the Angular Tour of Heroes Example
Note: Untested code