I'm building an image carousel using jCarousel and AngularJS. The carousel works great until I plug in AngularJS and it seems to be because AngularJS is normalizing (removing) all attributes in the HTML which start with data-
The normalization process is as follows: - Strip x- and data- from the front of the element/attributes.
http://docs.angularjs.org/guide/directive
However, jCarousel uses it's own attributes that start with data-
, so Angular removes these and causes the carousel to stop working
<div class="connected-carousels ng-scope" ng-controller="ImageCtrl">
<div class="stage">
<div class="carousel carousel-stage" data-jcarousel="true">
I'm not using any of the Angular data-
prefixed attribute names so is there a way I can prevent Angular from doing the normalization process on data-
attributes so that they are not modified? Or perhaps there is a way to force the carousel code to run before the Angular normalization?