[Vuejs]-Cannot retrieve posted data from vue.js ajax call

0👍

You are trying to access this from inside the post callback, where this refers to something other than your vue instance. Try this format:

this.$http.post('url/to/post',{},function(){

    //because of "bind", 'this' is vue

}.bind(this));
👤Jeff

Leave a comment