I'm using an external script to rotate thumbnails (http://sladex.org/images-rotation/).
<div ng-repeat="entry in entries">
<div class="thumbs rotation"
data-images="['{{entry.thumbs[0].src}}','{{entry.thumbs[1].src}}']">
<a href="#">
<img ng-src="{{entry.thumbs[0].src}}" class="img-fluid">
</a>
</div>
<p>{{entry.title}}</p>
</div>
entry.thumbs
is array of thumb urls like entry.thumbs[0].src, entry.thumbs[15].src, etc.
The script requires to place the thumbs urls in data-images
attribute
data-images="['1.jpg','2.jpg']"
How can I do it with ng-repeat so it will output correct data-images attribute? Should I use a custom directive for this? Thanks.