jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

Unable to integrate with Angular Directive #810

Closed JuanAntelo closed 8 years ago

JuanAntelo commented 8 years ago

Has anybody tried to integrate this plugin with Angular? The below code is not working..

.directive(carousel', function ($compile) {
      var template = '<h2>hi world</h2>';
      return {
        templateUrl: "carousel.html",
        link: function(scope, element, attrs) {
          $('.jcarousel').jcarousel({
             visibility: 4
          })
        }
      };
})
jsor commented 8 years ago

I've never used Angular, so i can't help here. Sorry.

JuanAntelo commented 8 years ago

I ended up ripping Angular out and replaced it with jQuery, works now.