我使用ngRepeat填充一些代码,我想这样做:
<div ng-repeat="item in reportsData">{{item.name}}<img src="../assets/img/products/{{item.fileName}}.gif">
<ul rn-carousel class="image" rn-carousel-transition="hexagon" rn-carousel-auto-slide rn-carousel-controls rn-carousel-controls-allow-loop rn-carousel-index="2">
<li ng-repeat="slide in item.fileName">
<div ng-style="{'background-image': 'url(' + slide.image + ')'}" class="bgimage">
</div>
</li>
</ul>
</div>
但是item.fileName引用不会呈现给值。如何使这种类型的参考工作?我在父级ngRepeat上看到了一些与ng-init相关的代码看起来可行,但是我无法让它工作。