I found this question and the answer is perfect for me. Can help me to implement the answer in this question? Can this change be made for using ng-repet
in codepen or somewhere? I don't know what he meant when he said to implement:
1) I had to use a directive with an event to be received by the controller
Can someone better explain how to use nr-repeat
with packery
in this example?
You can find several working examples of Packery integration in an AngularJS app.
Here is one of them: http://codepen.io/beaver71/pen/XXYwGG which works with a ng-repeat directive like the followin:
<div ng-repeat="item in items" class="item" style="background-color: {{item.color}};" packery></div>
Another codepen: http://codepen.io/gruntruk/pen/Cpewt/
or some Angular modules: