Jquery Transfer effect in ng-repeat
问题 I am trying to add jquery Transfer effect to the dynamic images in the loop. Following is my code. <img ng-src="{{item.thumbnailImageUrl}}" width="221" height="190" alt="{{item.itemName}}" class="item-img-{{$index}}-addToCompare" id="item-img-{{$index}}" border="0"/> <a href="javascript:addToCompare('add','{{$index}}')" class="item-{{$index}}-addToCompare">Add</a> function addToCompare(mAction,index) { e = document.getElementById('myAngularApp'); scope = angular.element(e).scope(); scope.