2017-06-18 40 views
0

IM和它沒有觸發滾動事件...... 我的代碼:nginfinityscroll工作不使用nginfinityscroll

<div class="listView" id="foundingScroll"> 
<label style="margin-top:10px">search:</label> 
<input ng-model="foundingFilter"/> 
<div infinite-scroll="scrollSearch()" infinite-scroll-container="#foundingScroll"> 
<div ng-repeat="founding in foundings| myFilter:foundingFilter"><input type="checkbox" value="founding.id" ng-model="foundingsSearch[founding.name]" /><label>{{founding.name}}</label></div></div></div> 

什麼想法?

+0

你可以發佈你的代碼作爲plunker – user93

回答

0

看起來你忘記了選擇器周圍的單引號。試試這個:

<div infinite-scroll="scrollSearch()" infinite-scroll-container="'#foundingScroll'">