CTRL + F "get"
// Make a request for a user with a given ID
axios.get('/user?ID=12345')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
axios.get('/user', {
params: {
ID: 12345
}
})
getTown(e) {
let self = this;
$("#search_select").keyup(function() {
if ($(this).val().length > 2) {
queryParams['str'] = $(this).val();
callApi('towns', queryParams, '').then((res) => {
Vue.set(self, 'cities', res.data.data);
console.log(2, $('#li').length, self.cities);
})
}
})
},
@change="runMethod(variable_from_vuex)"
//let block = {...empty_block};
let block = _.cloneDeep(empty_block);