Skip to content

Jusas/angular-slick

 
 

Repository files navigation

angular-slick

Angular directive for slick jquery carousel. Demo is here.

Usage:

  • Install: bower install angular-slick
  • Add jquery, angular, slick-carousel and angular-slick to your code:
<link rel="stylesheet" href="bower_components/slick-carousel/slick/slick.css">
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/slick-carousel/slick/slick.js"></script>
<script src="bower_components/angular-slick/dist/slick.js"></script>
  • Add a dependency to the slick module in your application.
angular.module('MyApp', ['slick']);
  • Add a slick element to your html:
<slick>
  ...
</slick>

<slick infinite=true slides-to-show=3 slides-to-scroll=3>
  ...
</slick>

<slick dots=true infinite=false speed=300 slides-to-show=5 touch-move=false slides-to-scroll=1>
  ...
</slick>
  • For initialization carousel after data is loaded use init-onload property. Example:
<slick init-onload=true data="awesomeThings">
  ...
</slick>
  • If you wanna read about possible settings, go here.

That's it!

About

Angular directive for slick-carousel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.3%
  • CSS 24.0%
  • CoffeeScript 17.7%