angular.js/src/ng
Sylvester Keil 4ae46814ff feat(http): support request/response promise chaining
myApp.factory('myAroundInterceptor', function($rootScope, $timeout) {
    return function(configPromise, responsePromise) {
        return {
            request: configPromise.then(function(config) {
                return config
            });
            response: responsePromise.then(function(response) {
                return 'ha!';
            }
        });
}

myApp.config(function($httpProvider){
    $httpProvider.aroundInterceptors.push('myAroundInterceptor');
});
2013-03-27 13:13:59 -07:00
..
directive refactor(ngRepeat): make use of declared variable 2013-03-20 14:16:41 -07:00
filter fix(timezone): correct timezone date filter for 1/2 hour offsets 2013-03-14 22:16:54 -07:00
anchorScroll.js docs(anchorScroll): correct word "location" 2012-12-19 21:01:41 +01:00
browser.js fix($cookies): set cookies on Safari&IE when base[href] is undefined 2013-02-07 02:36:25 -08:00
cacheFactory.js feat($cacheFactory): cache.put now returns the added value 2012-11-25 00:01:34 +01:00
compile.js feat(http): support request/response promise chaining 2013-03-27 13:13:59 -07:00
controller.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
document.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
exceptionHandler.js docs(exceptionHandler): document testing 2013-01-17 23:08:39 -08:00
filter.js docs(filter): Using indefinite article 2013-03-19 10:56:48 -07:00
http.js feat(http): support request/response promise chaining 2013-03-27 13:13:59 -07:00
httpBackend.js fix($httpBackend): prevent DOM err due to dereferencing .responseText 2013-02-23 22:16:41 -08:00
interpolate.js feat($interpolate): provide contextual error messages 2012-08-30 14:50:22 -07:00
locale.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
location.js fix($location): parse FirefoxOS packaged app urls 2013-03-15 21:19:31 -07:00
log.js feat($log): add $log.debug() 2013-01-17 16:47:39 -08:00
parse.js feat($parse): added constant and literal properties 2013-02-14 14:43:56 -08:00
q.js feat($q): $q.all() now accepts hash 2013-02-25 10:58:05 -08:00
rootElement.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
rootScope.js docs($rootScope): rearrange event listener docs 2013-02-14 15:47:16 -08:00
route.js $routeChangeSuccess documentation 2013-03-15 21:02:21 -07:00
routeParams.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
sniffer.js fix(CSP): update to the latest CSP api 2012-11-15 01:46:58 +01:00
timeout.js docs($timeout): set return type to Promise instead of *. 2012-11-11 11:31:51 +01:00
window.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00