I have an AngularJS HTTP interceptor:
$httpProvider.interceptors.push([
"$rootScope", "$q", "$location",
function ($rootScope, $q, $location) {
return {
'request': function (config) {
var loc = $location.path();
console.log("path: " + loc);
....
....
return config;
},
...
};
}
]);
I make a call that returns an array of 25 items. The items are populated into the html using ng-repeat. This display results in 75 calls to the request function.
Can anybody explain why it makes so many calls for one HTTP request?
Thanks for any help.