Created
October 18, 2015 03:48
-
-
Save bmdayal/6423d04599d357750e8e 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
//update person | |
$scope.updatePerson = function(person){ | |
$http.put("/updatePerson", person) | |
.then(onUpdatePersonCompleted, onError); | |
console.log(person); | |
}; | |
var onUpdatePersonCompleted = function(response){ | |
$scope.person = null;//response.data; | |
console.log(response.data); | |
refresh(); | |
}; | |
//end update person |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment