vasyabigi / angular-slick

Angular directive for slick-carousel
http://vasyabigi.github.io/angular-slick/
MIT License
500 stars 237 forks source link

How angular-slick works and random behaviour apparently related to double http request #138

Open isaacalves opened 8 years ago

isaacalves commented 8 years ago

In my angluar-slick gallery, eventually, in an apparently random way, those two divs are added inside my main element, as wrappers for all the slide items:

`

` Why does it do that? Because sometimes (most of the times) it doesn't add those (for whatever reason I can't find out), and it's just perfect like that because apart from those elements it also adds width to the slide items and it breaks the whole gallery. The gallery is populated with data from a json object that is requested at different times in my app. One thing I noticed is that, if that json object is cached (which seems to be the right way of doing it), those divs above (dragabble and slick -track) will always be injected and will break the gallery. I know that sounds really awkward but maybe I can get some clue of what's going on here because I'm totally clueless.