Answer the question
In order to leave comments, you need to log in
Why doesn't gallery (Slick) work with ng-repeat on Angularjs?
1. I use slick-angularjs gallery ( vasyabigi.github.io/angular-slick/).
There is no jQuery!
2. Slider works fine like this:
<slick>
<div>
<img src="{{bikes.gallery[0]}}" alt="">
</div>
<div>
<img src="{{bikes.gallery[1]}}" alt="">
</div>
<div>
<img src="{{bikes.gallery[2]}}" alt="">
</div>
</slick>
<slick>
<div ng-repeat="bikes in bike.gallery">
<img ng-src="{{ bikes }}" alt="">
</div>
</slick>
Answer the question
In order to leave comments, you need to log in
Add attribute to slick Like
this <slick init-onload="true", data="bikes"></slick>
Try it and unsubscribe.
There is no jQuery!
It's strange that in the documentation for Slick it is listed in the plug-ins ...
In general, judging by github Slick, the problem is known
Here is one of the solutions .... stackoverflow.com/questions/31108573/angular-slick...
Here are some https://github .com/vasyabigi/angular-slick/issues/105
Apparently, the pictures just don't have time to load and ng-repiat work, and the directive is already doing its dirty work...
Since when did it suddenly become equivalent?
and
<div ng-repeat="bikes in bike.gallery">
<img ng-src="{{ bikes }}" alt="">
</div>
<div ng-repeat="bike in bikes.gallery">
<img ng-src="{{ bike }}" alt="">
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question