Using an interceptor in AngularJS how can console.log("finished AJAX request") when any request has completed?
I have been looking at interceptors and so far have the following but it fires on the start of the request not the end.
app.factory('myInterceptor', [function() { console.log("finished AJAX request") var myInterceptor = { }; return myInterceptor; }]); config:
app.config(function ($stateProvider, $urlRouterProvider, $httpProvider) { $httpProvider.interceptors.push('myInterceptor'); etc