Skip to content

Instantly share code, notes, and snippets.

Created July 30, 2014 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d2145529b9359060beeb to your computer and use it in GitHub Desktop.
Save anonymous/d2145529b9359060beeb to your computer and use it in GitHub Desktop.
Product.query().$promise.then(function(data) {
$scope.products = data.products;
if($scope.products) { $scope.dataStatus = true; } else { $scope.dataStatus = false; }
console.log('success');
}, function(error) {
console.log('error');
});
console.log($scope.products);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment