Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

**ARCHIVED**: This library is for AngularJS. Neither that framework nor this library should be used at this point in time.

Notifications You must be signed in to change notification settings

jonahbron/angular-owl-carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Angular Owl Carousel

This directive allows you to back a Owl Carousel with data from an Angular controller.

For use with Owl Carousel 2

Usage

Javascript:

// Define app module
angular
    .module('myApp', ['angular-owl-carousel']);

// Create controller
angular
    .module('myApp')
    .controller('MyController', MyController);

function MyController() {
    this.owl = {
        items: ["item 1", "item 2"],
        options: {
            loop: true,
            nav: false
        }
    };
}

HTML:

<div ng-controller="MyController as main">
    <div owl-carousel="main.owl.items" owl-options="main.owl.options">
        <div class="item">{{ item }}</div>
    </div>
</div>

About

**ARCHIVED**: This library is for AngularJS. Neither that framework nor this library should be used at this point in time.

Resources

Stars

Watchers

Forks

Packages

No packages published