I've got a bunch of data I would like to display in a sliding carousel type layout. Ideally we would show 8 of these data points in each slide, so that it would look something like this:
Slide
datapoint 1
datapoint 2
datapoint 3
datapoint 4
datapoint 5
datapoint 6
datapoint 7
Slide
datapoint 8
datapoint 9
datapoint 10
datapoint 11
etc etc...Now I know how to iterate over these datapoints using ng-repeat, however, i'm not sure how I can iterate while grouping them into their own respective groups.
Currently i'm using ng-repeat="(index, master) in data" to iterate, but obviously, this gives me a list of items without the grouping that i'm after.
I posted this on Stack Overflow, and was directed to this but there seems to be a "10 $digest() iterations reached. Aborting" Bug where it causes a bunch of errors.
Anyone have any suggestions? I'd love to have a proper working filter that can do this as it would make it easier to implement in other places.
<slideStart> <!-- or however you start your slider HTML -->
<div ng-repeat"whatever in data">
<div ng-bind="whatever"></div>
<slideEnd ng-if="!($index mod 8)">
<slideStart ng-if="!($index mod 8)">
</div>
<slideEnd> <!-- or however you end your slider HTML -->