Created
August 26, 2014 03:11
-
-
Save tomdcc/f66b479a3732cc5ac8c8 to your computer and use it in GitHub Desktop.
This file contains 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
theModule.config( function($httpProvider) { | |
$httpProvider.responseInterceptors.push(["$q", "$timeout", function ($q, $timeout) { | |
return function (promise) { | |
var defer = $q.defer(); | |
$timeout(function () { | |
promise.then(function (data) { | |
defer.resolve(data); | |
}); | |
}, 500); | |
return defer.promise; | |
}; | |
}]); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment