Skip to content

Instantly share code, notes, and snippets.

@oliverm2112
Created April 18, 2013 17:15
Show Gist options
  • Save oliverm2112/5414505 to your computer and use it in GitHub Desktop.
Save oliverm2112/5414505 to your computer and use it in GitHub Desktop.
app.factory('httpServiceInterceptor', ['$q', function ($q) {
return function (promise) {
return promise.then(function (response) {
return response;
}, function (response) {
return $q.reject(response);
}
);
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment