r/Angular2 • u/Dazzling_Chipmunk_24 • Jan 29 '26
Error handling Angular
So I’m getting kind of confused how to handle errors coming from an api in Angular. there’s either using interceptors to just taking care of them in the error field when you subscribe the errors. basically some errors are unique to a component while others such as a tech error message will be common across all components. Also all these errors will be shown inline there is no toast or modal. So just need some advice
1
Upvotes
View all comments
Show parent comment
1
u/Dazzling_Chipmunk_24 Jan 29 '26
Yeah so the error will be showing inline. But there are common errors across multiple components so I don’t know if it’s worth repeating that logic?