2👍
✅
Just as one final tidbit, you don’t need to do the name:this.messageData.name
thing if you did this:
sendmessage: function(messageData) {
this.$http.post('contact', this.messageData)
.then(function() {
console.log('success ');
})
.catch(function() {
console.log('error');
});
}
👤Jeff
Source:stackexchange.com