ksachdeva / angular-swiper

Angular directive for nolimits4web/Swiper
Apache License 2.0
197 stars 94 forks source link

Buffer support #43

Open websirnik opened 8 years ago

websirnik commented 8 years ago

I'm migrating from the https://github.com/revolunet/angular-carousel to Swiper. One nice feature of angular-carousel was the ability to buffer elements in ng-repeat. You can see the demo here: http://blog.revolunet.com/angular-carousel/ The idea is if you have 50 elements in your array, with the butter feature there is going to be only 5 elements in the DOM at any time, not 50. When you navigate to the next element, the buffer updates DOM to include the next elements. Internally it is implemented via ng-repeat filter.

I've tried to replicate the experience with ng-repeat filter, but failed so far. Do you have any guidance how to add support for buffering?