rnmp / salvattore

A jQuery Masonry alternative with CSS-driven configuration.
https://salvattore.js.org/
MIT License
2.17k stars 243 forks source link

How can I use this library with Angular.js ng-repeat? #174

Open mzzovko opened 8 years ago

mzzovko commented 8 years ago

How can I use this library with Angular.js ng-repeat? It doesn't seem to work, it only applies ::before to first ng-repeat div, and nothing to the rest. I guess this has something to do with dynamic dom creation, but how do I fix it?

guidedog51 commented 8 years ago

add a directive to your ng-repeat and in the link function watch for scope.$last -- at that point rendering is complete with repeater and you can initialize salvattore via .registerGrid

mzzovko commented 8 years ago

Thanks for the answer, I made some workarounds, but I'll try this too.