我在阅读了多篇关于 ng-infinite-scroll 的帖子后编写了这段代码
<div class="course-enrollment-friends" ng-class="{'friends-paginated':showMoreFriends}">
<div class="row" id="enrollment-friends" ng-show="!noFriends">
<div
infinite-scroll="enrollCtrl.retYearAndSem()"
infinite-scroll-disabled='!{{showMoreFriends}}'
infinite-scroll-parent='true'>
<div class="col-md-2" ng-repeat="friend in friends" style="margin-bottom:10px;">
然而这并没有奏效。所以我尝试了一些稍微不同的东西
<div class="course-enrollment-friends" ng-class="{'friends-paginated':showMoreFriends}">
<div class="row" id="enrollment-friends" ng-show="!noFriends">
<div
infinite-scroll="enrollCtrl.retYearAndSem()"
infinite-scroll-disabled='!{{showMoreFriends}}'
infinite-scroll-container='.course-enrollment-friends'>
<div class="col-md-2" ng-repeat="friend in friends" style="margin-bottom:10px;">
我究竟做错了什么?