Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login : function(){
- // POST /someUrl
- this.$http.post('controllers/accountController.php', { data:{action : "login", user: this.username, pass:this.password}}).then(response => {
- // get status
- response.status;
- response.statusText;
- this.someData = response.body;
- console.log(response.body);
- }, response => {
- console.log("error");
- });
- }
- }
- this.$http.post('controllers/accountController.php',
Add Comment
Please, Sign In to add comment