ng-repeat不添加容器标签

如UL中的循环, 我们不期望添加额外的div之类的容器标签, 使用ng-repeat-startng-repeat-end可以实现

      <li class="item item-icon-right" ng-repeat-start="chapter in chapterClass.chapters">{{chapter.chapter_name}} <span style="display: inline-block;float: right;">{{chapter.user_finished}}/{{chapter.totalclass}}</span><i class="icon ion-ios-arrow-right"></i></li>
      <li class="item item-text-wrap" ng-repeat-end>
        <div class="row">
          <div><img width="100%" ng-src="{{chapterClass.img_url}}" alt=""></div>
        </div>
      </li>
posted @ 2017-11-19 16:15  CooMark  阅读(256)  评论(0编辑  收藏  举报