angularjs infinitescroll ng-repeat问题

时间:2014-08-25 14:40:41

标签: angularjs angularjs-directive ng-grid celltemplate

我有一个实现无限滚动的div,它放在一个部分HTML页面中。这个div有一个

  • 实现,这个ul正在为通过无限滚动函数获得的项目实现ng-repeat在factory.this函数在每个scroll上工作正常。但我的
  • 没有得到渲染

    这是html

          <div ng-controller="studentCareerList">              
                  <div  infinite-scroll="list.nextPage(list.index,limit,'engineer')"  infinite-scroll-disabled='list.stopscript' >                      
                      <ul class="selectMajor relatedCareer " ng-repeat="item in myData" >                         
                          <li class="check">
                              <input type="checkbox" id="check5" class="css-checkbox" /><label class="css-label" for="check5"></label></li>
                          <li class="icon"><span class="icon30 greenSetting" ></span></li>
                          <li class="name">
                              <p>{{item.Name}}</p>
                          </li>
                          <li class="description">{{item.Description}}</li>
                          <li class="remaining">{{item.EarningsAnnual}}</li>
                          <li class="like"><span class="greyLike"></span></li>
                      </ul>
                      <div class="message" style="text-align: center;" ng-show="list.noRecordTrigger">
                          <span class="infoIcon"></span>
                          <span>No record found.</span>
                      </div>
    
                  </div>
    
    
              <div><span ng-show="list.busy">Loading please wait...</span></div>
          </div>
    
  • 0 个答案:

    没有答案