Run init from controller
I have the issue of images overlapping because I'm loading many images. Usually the easy fix for the Javascript / jQuery version is to add ImagesLoaded and after initialise isotope.
Applying ImagesLoaded is pretty easy after my ajax requests for the items but I wish also to initialise this plugin when ImagesLoaded is done.
How can I run it from the controller?
For the ones looking at ImagesLoaded for Angular, I'm using this one: https://github.com/homerjam/angular-images-loaded
It works very well.
any luck using ajax, ImagesLoaded and angular-isotope?
I just replaced angular-isotope with angular-masonry that is built on top of isotope and has already imagesLoaded. It is working fine.
thanks I also found it doing everything I need. But Isotope supposed to be better than masonry (even both were build by the same guy). Isotope relies on modern browsers to do transformation and other functions. So a result page with 300 tiles performs better.