DEV Community

Discussion on: Errors and Angular

Collapse
 
andar profile image
Vitalii • Edited

Thank you for useful topic :)
Could you please clarify some thing: in section “ Throwing errors when we know something is wrong” in the very last picture where we use catchError operator. Inside it we going to return operator of() with function handleError(error). As I understand this function we have to get from ErrorService? But didn’t find the injecting of the service inside AppComponent. It’s just misspelling?