Is there a way to intercept the ng-view change and display a "loading div" overlay until all new images are loaded?
I've been attempting to suspend promise callbacks in my HttpInterceptor, but I'm struggling to resolve my promise for a second time.
Here is an example:
return function (promise) {
globalForTest = $q.defer();
return promise.then(function (response) {
console.log('first', response);
return globalForTest.promise;
}).then(function (response) {
console.log('second', response);
return response;
});
When I attempt to call globalForTest.resolve(value), nothing happens - no error is thrown either.