Skip to content

Instantly share code, notes, and snippets.

@NickToye
Created October 30, 2015 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickToye/73fe2bd7888b6591f5d2 to your computer and use it in GitHub Desktop.
Save NickToye/73fe2bd7888b6591f5d2 to your computer and use it in GitHub Desktop.
$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
};
<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