new Vue({
el: '#id',
data: {
endpoint: 'send.php'
},
methods: {
send: function() {
var options = {
params: {
'get': 'test'
}
}
this.$http.post(this.endpoint, options).then(function(responce) {
alert(responce.data);
}, function(error) {
alert('error');
})
}
}
})
echo ($_POST['get'] == null)? 'false': $_POST['get'];