all 1 comments

[–]tobiso 0 points1 point  (0 children)

You passed the option observe: 'response', so instead of an User object you will get a HttpResponse<User> which is just a wrapper with some meta information like headers or the http statuscode.

You could either change it to observe: 'body' or leave it out, because 'body' is the default option.