So I'm trying to use mootools to create a drag/drop cart as seen here: demo. I can get there code working just fine, but when I try to edit their html to look like the html beloe, it stops working. The css still applies as one would expect, and the div outside of the ng-repeat works fine. However, I'm pretty sure that the .addEvent in the mootools javascript can't 'find' the .item within the ng-repeat, so I am unable to grab any of the .items in ng-repeat.
Any ideas?
UPDATE: OK, it appears that the problem involves the domready event in the javascript. The angularjs hasn't loaded when that fires. I tried the load event, but this also fires before angularjs loads. Any other ideas for events? I'm using mousedown right now, but this means you have to click on one of the images before you can start dragging them, which is not optimal. In addition, the mousedown event seems to cause strange duplicates to appear in the cart sometimes, so I'll need to find a better method.
<div id="items">
<div class="item">
<p>test</p>
</div>
<div ng-repeat="post in posts">
<div class="item">
<img class="picImage" src="/static/imgs/{{post.picture}}" alt="Smiley face" height="128" width="128">
<p>Shirt 1</p>
</div>
</div>
</div>