Guglielmo Mocciaro
Guglielmo Mocciaro
i found a workaround (little bit dirty) to detect the active element, you can retrieve actual index with rn-carousel-index and watch for it (with $scope.$watch). the rn-carousel-index will be the...
Hi @tonejac, this is what i did html: ``` ``` js: ``` $scope.$watch('carouselIndex', function(newValue) { console.log(jQuery('#home_featured_slider ul > li:nth-child(' + (+newValue + 1) + ')').html()); }); ``` Little explanation: i'm...
@revolunet i know that isn't the best or the cleanest solution, but it's the more effective solution i found so far
@tonejac you can try to wait for the variable to change in the $watch to avoid the "trembling" just doing this ``` $scope.$watch('variable', function(current, updated){ if (current != updated){ //...
never... you can try to put here your code (shortly) and i can give a look. I guess that you're showing some variable that doesn't refresh itself in the right...
Which version of angular are you using? i'm not sure about this ``` /* Additional carousel custom functionality */ $scope.$watch(function(scope) { return scope.carouselIndex }, function() { ViewController.TruncateWineComments(); } ); ```...