Created
March 23, 2016 11:15
-
-
Save bubnenkoff/06404cf63542780af76a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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