angular-owl-carousel2

1.0.6 • Public • Published

Angular Owl Carousel - 2

Impl for OwlCarousel2

Installation

npm install angular-owl-carousel2
bower install angular-owl-carousel2

Usage

$scope.items = [1, 2, 3, 4, 5, 6, 7, 8];
 
    $scope.properties = {
        items: 2,
        onChange: function () {
            console.dir(arguments);
        }
    };
 
    $scope.ready = function ($api) {
        owlAPi = $api;
    };
 
    $timeout(function () {
        console.dir(owlAPi);
        owlAPi.trigger('next.owl.carousel',[2000]);
    }, 2000)
 
<ng-owl-carousel class="owl-theme" owl-items="items" owl-properties="properties" owl-ready="ready($api)">
    <div class="item"><h4>Free Item</h4></div>
    <div class="item" data-ng-repeat="item in items"><h4>{{$index}}</h4></div>
</ng-owl-carousel>

Dependents (2)

Package Sidebar

Install

npm i angular-owl-carousel2

Weekly Downloads

109

Version

1.0.6

License

MIT

Last publish

Collaborators

  • emalikterzi