Ng-down

AngularJS directive bottom page trigger

Welcome

- Just play a little bit

- Here just a sample with 3 different action target you may use when scroll bottom of your page...

- Common example is pagination but I won't illustrate it here

- Let's go scroll down with your mickey mouse

Code

<!DOCTYPE html>
<html>
<head>
  ...  
  <script type="javascripts/javascript" src="angular.min.js" />
  <script type="javascripts/javascript" src="ng-down.min.js" />
</head>
<body>
  ...
  <div when-bottom action='yourCurrentScopeFunction()' timer='3000'>
    ...    
  </div>
  
  <script>
    function ctrl($scope) {
      $scope.yourCurrentScopeFunction = function() {        
        alertify.alert("You have scroll down");
      };
    }   
  </script>
      
</body>
</html>


Donate