angular directive that renders when there are no $http outstanding requests
This directive was created to delay the downloading of tracking scripts, it can, however, be used for any other purpose.
The directive should be placed in after the code which will be making the requests. Making it the last element in your page is always a good approach :).
<ng-on-http-stable>
<p>This will render when the $http service has no more pending calls</p>
</ng-on-http-stable>
A service is also available.
onHttpStableService.notifyWhenStable(function () {
//execute logic
});