Global HTTP request error catching in Angular
Luuk Gruijs

Unfortunately this won’t catch an exception occurred in .map
It doesn’t matter if you’re making more serious mappings or just using .json(), still it can throw an SyntaxError: Unexpected end of JSON input error with a non-valid json response (empty string is enough to make it invalid). So you still need to attach catch after every .map in rest service.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.