Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('pslick', function($timeout) {
- return {
- restrict: 'A',
- scope: true,
- controller: function($scope, $element, $attrs) {
- $timeout((function() {
- $element.slick({
- infinite: true,
- slidesToShow: 3,
- accessibility: true,
- slidesToScroll: 1,
- limit: 6,
- adaptiveHeight: true,
- responsive: [{
- breakpoint: 1000,
- settings: {
- slidesToShow: 2,
- slidesToScroll: 1
- }
- }, {
- breakpoint: 768,
- settings: {
- slidesToShow: 1,
- slidesToScroll: 1
- }
- }]
- })
- }), 300)
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement