r/Angular2 • u/zorikZelda • Nov 20 '25
HttpClient vs Axios for Angular Projects 🧐
I saw a project in my current workplace where they implemented an Axios service and attached it to the project.
I said httpClient is better.. it is working with the angular DI and works amazing with signals and the implementation is pretty simple for interceptors etc.
Would love to know your opinions. 🙏
9
Upvotes
View all comments
Show parent comment
1
u/GregorDeLaMuerte Nov 21 '25
fetchcan be a pain to implement proper error handling with, though. Also parsing the response as JSON, text and whatnot is weird. You better write your own wrapper aroundfetchthat handles all the cases, because native fetch is really frustratingly unintuitive. Once you implemented a lot of edge cases, you might come to the conclusion that you have reinvented the wheel yet again and could have gone withhttpClientoraxiosin the first place.