DEV Community

Discussion on: Let's talk about an unnecessary but popular Vue plugin

Collapse
 
alexparra profile image
Alex Parra

For the sake of decoupling, I think it’s best to only use this.$http even if mapped to axios.
If ever you need to change the library, you won’t need to change all the components (or have a misnomer).
Even better, create an API module that exports specific methods that represent endpoints which in turn use the axios instance.