Type: bug
Platform: all
I have a huge amount of slides, which im trying to display in an ion-slide-box. The problem of course is performance..which im trying to improve with using the following to approach:
Dynamically adding/removing slides, while sliding. So i start with 2 slides. After sliding from slide 1 to 2, im pushing a new slide (3) to the slides array, which is working great.
But (!) i dont want only to add new ones, i want to remove old ones too. So if im trying to remove the first (1) one, after pushing a third (3) one and beeing on the second (2) one, i have to use the $ionicSlideBoxDelegate.update() method within a timeout function.
After the update function gets triggered, im not on second (2) one anymore, it changes the focus to the earlier created third (3) one???
small exmaple here: http://codepen.io/anon/pen/OVjKmY
How can this even be? Any ideas? I cant found what the update method is exactly doing, so i wasn't able to investigate it on code level.
Any help is really appreciated!
Cheers,
AJ