Skip to content

Instantly share code, notes, and snippets.

@bmakarand2009
Last active December 27, 2015 13:19
Show Gist options
  • Save bmakarand2009/7332930 to your computer and use it in GitHub Desktop.
Save bmakarand2009/7332930 to your computer and use it in GitHub Desktop.
angular goodness - angular.noop() function
//do nothing on the success callback, hence replacing the success callbck function with angular.noop()
$scope.contacts= Contacts.query( angular.noop,function(response) {
Window.myresp = response;
$scope.displayError(response);
console.log("bad boy, listContacts failed");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment