-
-
Save bmakarand2009/7332930 to your computer and use it in GitHub Desktop.
angular goodness - angular.noop() function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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