I'm trying to use a jquery plugin within a partial in angularjs.
Directive:
app.directive('slideit',function() {
return function(scope, elm, attrs) {
elm.bxSlider({
adaptiveHeight: true,
mode: 'fade'
});
};
});
HTML:
<div id="sliderwrapper" >
<ul class="slider" slideit>
<li ng-repeat="image in dealer.images"><img ng-src="{{image}}" alt="" /></li>
</ul>
</div>
The output shows me, that the bxSlider() is successfully running on the directive. But the list and/or the tags are not touched. Just with normal AngularJS code but not with the jQuery plugin.
What I'm doing wrong?