Last active
October 18, 2015 03:48
-
-
Save bmdayal/dd2bb7e836b3b0c25b85 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
//delete person | |
$scope.deletePerson = function(id){ | |
$http.delete('/deletePerson/' + id) | |
.then(onPersonDeleteCompleted, onError); | |
console.log(id); | |
}; | |
var onPersonDeleteCompleted = function(response){ | |
$scope.person = response.data; | |
console.log(response.data); | |
refresh(); | |
}; | |
//end delete person |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment