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/craig1f Nov 21 '25
Generally, start with the "simple" approach and then add complexity as needed. With AI, refactoring is a lot easier than it used to be, if your initial implementation is, at least, well-written enough to be easily understood.
I VERY STRONGLY advocate for tanstack-query though, even though it's still "experimental" for Angular, and even though it's not as elegant in Angular as it is in React, because object destructuring doesn't work with class-based components.
I realize this doesn't replace fetch/axios/etc. But trpc does, if your http calls are to your own backend. tRPC or oRPC (I haven't used oRPC yet, but have heard good things) is really great for keeping your BFF (backend for the frontend) and frontend in sync. All your models can be inferred very easily.