I have the following code:
var entityResource = $resource('/api/Subject/GetSubjects')
entityResource.query({ }, function (result) {
$scope.grid.data = result;
$scope.grid.backup = angular.copy(result);
$scope.$broadcast('gridSetPristine');
$scope.grid.fetching = false;
})
This works but how can I add in more checks. How can I get any status codes received from HTML or handle if the call does not work?