$http.get('/contactList').
success(function(data){
console.log('received data from http get');
}).
error(function(data) {
$scope.error = true;
$scope.data = data;
return 'error message';
});
There seems to be an issue with the code snippet above. I'm attempting to utilize the $http.get
function in Angular JS. Any advice on where I might be going wrong?
I continuously encounter an error.