var params = { data1: 'string', } axios.post(url, params).then(function(response) { //code here });
axios.post(url, {data1: 'string' }).then(function(response) { //code here });