Skip to content

Instantly share code, notes, and snippets.

@bmdayal
Created October 18, 2015 03:48
Show Gist options
  • Save bmdayal/6423d04599d357750e8e to your computer and use it in GitHub Desktop.
Save bmdayal/6423d04599d357750e8e to your computer and use it in GitHub Desktop.
//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