thenikso / angular-flexslider

AngularJS directive to use Woothemes' FlexSlider jQuery plugin.
MIT License
189 stars 100 forks source link

Does not update an image src in the slider #50

Open ObaidUrRehman opened 9 years ago

ObaidUrRehman commented 9 years ago

Given the following array of slides array:

$scope.slideshow.slides = 
[ 'http://flexslider.woothemes.com/images/kitchen_adventurer_cheesecake_brownie.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_lemon.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_donut.jpg',
'http://flexslider.woothemes.com/images/kitchen_adventurer_caramel.jpg' ];

If I try to update the src of any of the slides like this:

 $scope.slideshow.slides[0] = "http://lorempixel.com/704/444/cats";

It does not reflect on the UI. I guess you'd need to handle that as well in your $watchCollection method.

c0nf1gur4t0r commented 9 years ago

I'm facing the same problem!! Could you help us on it?