2015-08-24 56 views
2

其實我有彈出窗口,它必須通過角度ajax調用來列出一些對象。而且我需要以延遲加載的方式加載對象,而我的彈出窗口的滾動達到了相同的底部。但是發生延遲加載而瀏覽器的滾動到達底部。angularjs在POP窗口中無限滾動?

我的問題是如何在彈出窗口中實現inifinte-scroll Div。

注意:我正在使用ng-infinite-scroll.min.js - v1.0.0 - 2013-02-23版本。

<div id="fo" ng-show="searchParameters.showOrganization"> 
    <div id="containerInfiniteScroll" class="container"> 

     <div ng-show="nonFeaturedOrganizationList.length==0" class="nores">No Results Found (Organization)</div> 
     <div infinite-scroll='loadPaginationOrgs(true)' nfinite-scroll-disabled="disabled" infinite-scroll-distance="1" 
      infinite-scroll-container='"#containerInfiniteScroll"'> 
      <div class="ende-widget1 grant-mar1 featuredPeeopleAndOrg-w" ng-repeat="orgId in nonFeaturedOrganizationList"> 

       <div ng-click="showBrowseFeatureDialog(false);selectFeature(orgId,6,organizationFeatures)"> 
        <div my-organization org-id="orgId" style-index="$index" /> 
       </div> 
       <div class="featuredPeeopleAndOrg-this"> 
        <a ng-click="showBrowseFeatureDialog(false);selectFeature(orgId,6,organizationFeatures)">Feature this</a> 
       </div> 

       <div class="clear"></div> 
      </div> 

     </div> 
    </div> 

    <div class="clear"></div> 
</div> 

+1

「請給予解決它。」 * what *的解決方案你從來沒有問過一個問題,你只是列出了一些代碼和一些要求。根本不清楚這裏究竟有什麼錯誤。 – Claies

+0

我覺得他和我一樣,loadPaginationOrgs沒有在彈出窗口中被觸發 – Artur79

回答