Created
October 18, 2015 03:47
-
-
Save bmdayal/c53cec521ccf1c5fea0b 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
//get persons by Id | |
var onGetByIdCompleted = function(response){ | |
$scope.person = response.data; | |
console.log(response.data); | |
}; | |
$scope.searchPerson = function(id){ | |
$http.get('/person/' + id) | |
.then(onGetByIdCompleted, onError); | |
console.log(id); | |
}; | |
//end get person by Id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment