SyntaxFix
Write A Post
Hire A Developer
Questions
You probably want to have something like this:
this.sendRequest(...) .map(...) .catch((err) => { //handle your error here })
It highly depends also how do you use your service but this is the basic case.