diff --git a/src/ng/templateRequest.js b/src/ng/templateRequest.js index 94ea64e0ca14..5760dde0b973 100644 --- a/src/ng/templateRequest.js +++ b/src/ng/templateRequest.js @@ -40,7 +40,7 @@ function $TemplateRequestProvider() { }; return $http.get(tpl, httpOptions) - .finally(function() { + ['finally'](function() { handleRequestFn.totalPendingRequests--; }) .then(function(response) {