title: How to set the throttle parameter in ngInfiniteScroll (AngularJS)
body: <p>In my Angular application I am using the ng-infinite-scroll to allow a user to continously scroll through their 'news feed' using the plugin here -
  <a href="https://sroze.github.io/ngInfiniteScroll/documentation.html" rel="nofollow noreferrer">https://sroze.github.io/ngInfiniteScroll/documentation.html</a></p>
  
  <p>On my desktop it runs fine, however when running this inside a Cordova app on an Android device the infinite scrolling uses a lot of CPU resources. I am trying to use the THROTTLE_MILLISECONDS option to only process scroll events every x seconds (this should increase performance and make scrolling less jerky).</p>
  
  <p>I have my modules defined as follows:</p>
  
  <pre><code>var abcdDirectives = angular.module('abcdDirectives', []);
  var abcdServices = angular.module('abcdServices', [ 'ngResource', 'infinite-scroll', 'ngCookies']);
  
  abcdApp.value('THROTTLE_MILLISECONDS', 10000);
  </code></pre>
  
  <p>I am trying to throttle this as follows using the line above but it doesn't seem to make any difference.</p>
  
  <p>In my template view I have the following code :</p>
  
  <pre><code>&lt;div 
    infinite-scroll="tabs[tabIndex].FeedService.loadFeed(false, tabs[tabIndex].FeedService.filters, search.text, search.dateFrom, search.dateTo)"
    infinite-scroll-disabled="tabs[tabIndex].FeedService.busy || tabs[tabIndex].FeedService.noMoreResults || !tabs[tabIndex].active || tabs[tabIndex].FeedService.initialLoad"
    infinite-scroll-distance="1"
    infinite-scroll-immediate-check="false" &gt;
  &lt;div ng-repeat="interaction in getTabItems(tabIndex) track by $index"&gt;
  </code></pre>
  
  <p>Within the js controller here is my getTabItems function</p>
  
  <pre><code>$scope.getTabItems = function (index) {
      if (angular.isDefined($scope.tabs[index].FeedService)) {
          console.log('getTabItems'); // this is being output to the console log over and over again extremely quickly
          return $scope.tabs[index].FeedService.items;
      }
  }
  </code></pre>
  
  <p>The console log in the function above I can see in the console log is being output over and over again <strong>far too much</strong> &amp; I am trying to throttle this function getting called but the throttle statement I have used seems to make no difference? What I am doing wrong with the code</p>
  
  <p>-- Versions --</p>
  
  <p><code>Angular 1.3.0</code>
  <code>ng-infinite-scroll 1.2.2</code></p>