thenikso/angular-flexslider

Replacing list with one of same length does not update

Opened this issue · 4 comments

We use an ajax request to retrieve data that we populate into an angular flexslider. As such, we replace the array that flexslider watches with an entirely new array when we get new results back. The trouble we see is that if you replace the list with one of the same list (so there are none to add or delete), the values shown in the slider do not update.

See example: https://jsfiddle.net/jwynveen/178rcjse/

with an entirely new array

and flexslider still watches the old one…
You probably should replace the content of the original array.
Just a quick thought. Your fiddle seems not related to flexslider at all.

I'm sorry, I failed to save the fiddle before sharing it. Here it is again with the code that actually pertains to flexslider: https://jsfiddle.net/jwynveen/178rcjse/1/

We are seeing the exact same issue in a use of Flexslider, the fiddle seems to demonstrate it well. Any update to this? Is it a bug with the core Flexslider library or does it pertain to the Angular implementation?

Is it a bug with the core Flexslider library or does it pertain to the Angular implementation?

👍 I'm also curious to know.

Anyone figure out a workaround?