Skip to content

Instantly share code, notes, and snippets.

@bubnenkoff
Created March 23, 2016 11:15
Show Gist options
  • Save bubnenkoff/06404cf63542780af76a to your computer and use it in GitHub Desktop.
Save bubnenkoff/06404cf63542780af76a to your computer and use it in GitHub Desktop.
postQuestionsContent : function()
{
this.$http.post('http://127.0.0.1:8080/questions', JSON.stringify(this.questions)).then(function(response)
{
console.log("Server response: ", response.status);
this.$data.sendButtonDisable = true;
}, function(response)
{
console.log("Server report that it can't process request");
if(response.status == 401)
{
console.log("User not authorized! ", response.status);
}
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment