title: How to prevent ngInfiniteScroll from being triggered multiple times after the initial trigger?
body: <p>I am using ngInfiniteScroll to enable infinite scrolling on my website.  It works partly as expected, once I scroll to the bottom of the page it calls the method I want it to call to show more posts, except that it keeps calling posts without end after it is triggered once.  Does anybody know what could be causing this?  This is what my code looks like where I am implementing ngInfiniteScroll, I don't know that this specific code will help much though.  I suspect it is getting thrown off by code in another file.</p>
  
  <pre><code>&lt;div style="height: 1px"&gt;
  &lt;post post-item="item" feed-items="items.feed" feed-name="feedName" ng-repeat="item in items.feed"&gt; &lt;/post&gt;
  &lt;div ng-if="items.feed.length == 0 &amp;&amp; !initialLoad"&gt;
  &lt;div class="empty-message"&gt;Your feed is currently empty, visit the &lt;a href="/#/users"&gt;Users&lt;/a&gt; page     and find some more people to follow!&lt;/div&gt;
  &lt;/div&gt;
  &lt;a infinite-scroll="nextPosts()" infinite-scroll-distance="1" href ng-click="nextPosts()"   class="show-more"&gt;Show more &lt;/a&gt; 
  &lt;/div&gt;
  </code></pre>