Directive for initializing Owl Carousel in AngularJS ng-repeat
npm install ng-repeat-owl-carousel#Download
##NPM
``shell`
npm install ng-repeat-owl-carousel --save`
##Bowershell`
bower install ng-repeat-owl-carousel --save
#Usage
Add source file to your view
`html`
Add module as dependency to your app
`javascript`
angular.module('app', ['ocNgRepeat'])`
Create Owl Carousel initializer method on controller or pagejavascript
app.controller("TeamController", [ function() {
var ctrl;
ctrl = this;
ctrl.members = []
ctrl.carouselInitializer = function() {
$(".about-carousel").owlCarousel({
items: 3,
navigation: true,
pagination: false,
navigationText: ["", ""]
});
};
}
]);
``
Add directive to your view and pass carousel initializer methodhtml``