Created
October 30, 2015 10:35
-
-
Save NickToye/73fe2bd7888b6591f5d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.slickLeadConfig = { | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
arrows: false, | |
fade: true, | |
asNavFor: '.thumb-swatches' | |
}; | |
$scope.slickThumbSwatches = { | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
rows: 2, | |
slidesPerRow: 4, | |
asNavFor: 'lead-swatch', | |
method: {}, | |
dots: true, | |
arrows: false | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<slick class="lead-swatch" settings="slickLeadConfig"> | |
<div ng-repeat="swatch in sofa.swatchUrList"> | |
<img class="center-block" ng-src ="{{swatch}}"> | |
</div> | |
</slick> | |
<div class="swatches"> | |
<p class="text-center">Available in these swatches</p> | |
<slick class="thumb-swatches" settings="slickThumbSwatches"> | |
<div ng-repeat="swatch in sofa.swatchUrList"> | |
<img class="center-block swatch" ng-src ="{{swatch}}" ng-click="slickThumbSwatches.method.slickGoTo(2)"> | |
</div> | |
</slick> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment