Skip to content

Instantly share code, notes, and snippets.

@Szeliga
Last active August 29, 2015 14:22
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 Szeliga/402fc461d19d9483415f to your computer and use it in GitHub Desktop.
Save Szeliga/402fc461d19d9483415f to your computer and use it in GitHub Desktop.
app.directive 'slickCarousel', ->
restrict: "A"
link: (scope, element, attrs, ctrl) ->
scope.responsive =
breakpoint: 1024
settings:
slidesToShow: 3
slidesToScroll: 3
infinite: true
dots: true
attrs.$set 'slidesToShow', 8
attrs.$set 'slidesToScroll', 4
attrs.$set 'responsive', 'responsive'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment