Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .directive('pslick', function($timeout) {
  2.     return {
  3.         restrict: 'A',
  4.         scope: true,
  5.             controller: function($scope, $element, $attrs) {
  6.             $timeout((function() {
  7.                 $element.slick({
  8.                     infinite: true,
  9.                     slidesToShow: 3,
  10.                     accessibility: true,
  11.                     slidesToScroll: 1,
  12.                     limit: 6,
  13.                     adaptiveHeight: true,
  14.                     responsive: [{
  15.                         breakpoint: 1000,
  16.                         settings: {
  17.                             slidesToShow: 2,
  18.                             slidesToScroll: 1
  19.                         }
  20.                     }, {
  21.                         breakpoint: 768,
  22.                         settings: {
  23.                             slidesToShow: 1,
  24.                             slidesToScroll: 1
  25.                         }
  26.                     }]
  27.                 })
  28.             }), 300)
  29.         }
  30.     }
  31. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement