0
I am using vuejs and am making the ajax requests via Vue-Resources. With Vue-Resources it is possible to make requests like this:
this.$http.get('/someUrl').then(response => {
// get body data
this.someData = response.body;
}, response => {
// error callback
});
I need to pass the http method via param something like:
var method = "PATCH"
this.$http(url, data, method)
Surely you can pass any value dynamically with Vue-Resources or any other lib.
var method = "PATH"
is fully valid.– Robson Braga