Replace vue-resource and $.ajax with axios to be the default HTTP client library
Currently we have 3 ways of doing an API request: axios
, vue-resource
and $.ajax
.
vue-resource
Can only be used with vue code
$.ajax
Can't be used with the Polling function or anything that is expecting a Promise and it should not be included into Vue code
axios
Can be used everywhere!
We should only have one lib for this, after an year of discussion I think it's safe to assume axios
would be the best tool for us.
@timzallmann @jschatz1 can we schedule this? Here's a possible roadmap:
- Replace
vue-resource
withaxios
- Update docs
- Replace
$.ajax
withaxios
- not as urgent since we won't be removing jQuery anytime soon
Edited by Inactive Account