如UL中的循环, 我们不期望添加额外的div之类的容器标签, 使用ng-repeat-start
和ng-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>
时间: 2024-11-10 01:12:04