Skip to content

angular directive that renders when no there are no $http outstanding requests

License

Notifications You must be signed in to change notification settings

rjoaopereira/ng-on-http-stable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-on-http-stable

angular directive that renders when there are no $http outstanding requests

Purpose

This directive was created to delay the downloading of tracking scripts, it can, however, be used for any other purpose.

Usage

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 :).

directive

<ng-on-http-stable>
  <p>This will render when the $http service has no more pending calls</p>
</ng-on-http-stable>

service

A service is also available.

onHttpStableService.notifyWhenStable(function () {
    //execute logic
});

About

angular directive that renders when no there are no $http outstanding requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published