Created
October 18, 2015 03:48
-
-
Save bmdayal/dccc053fd518e259b57d 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 all persone | |
var onPersonGetCompleted = function(response){ | |
$scope.persons = response.data; | |
console.log($scope.persons); | |
} | |
var refresh = function(){ | |
$http.get('/persons') | |
.then(onPersonGetCompleted, onError); | |
console.log('Response received...'); | |
} | |
refresh(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment