update/refresh angularjs ng-repeat with data from server
问题 I try to buil a website to like some pictures. I can load the picture, but I want to have a like system with who like the picture. my problem was I have to refresh the page to see who like this picture and increment the count. this my controller : $scope.loadingpics = function (){ $http.get('/api/photos') .success(function(awesomeThings) { console.log(awesomeThings); $scope.firstname = awesomeThings; }) .error(function (err){ $scope.errors.other = err.message; }); }; $scope.upVote = function