Skip to content

Instantly share code, notes, and snippets.

@yovchev
Last active July 19, 2017 08:48
Show Gist options
  • Save yovchev/829fd967d4436af220082b76c3153362 to your computer and use it in GitHub Desktop.
Save yovchev/829fd967d4436af220082b76c3153362 to your computer and use it in GitHub Desktop.
Use Owl Carousel 2 with angular
<div ng-controller="FirstCtr as first">
<div class="owl-container">
<div owl-carousel owl-options="first.carouselOptions" class="owl-carousel">
<div owl-carousel-item ng-repeat="item in first.items">
{{ item }}
</div>
</div>
</div>
</div>
<div ng-controller="SecondCtr as second">
<div class="owl-container">
<div owl-carousel owl-options="second.carouselOptions" class="owl-carousel">
<div owl-carousel-item ng-repeat="item in second.items">
{{ item.name }}
</div>
</div>
</div>
<i ng-click="second.emit('prev')"></i>
<i ng-click="second.emit('next')"></i>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment