A possible way to structure data like that is by formatting the array into a 2D array for easier looping. You can refer to the Custom Example for reference.
To achieve this, you can create a filter to format your array data:
// Custom filter to loop through every n items
App.filter("customLoop", [function() {
return function(mainArray, loopEvery) {
var subArray = [], formattedArray = [];
angular.forEach(mainArray, function(item, index) {
subArray.push(item);
if ((subArray.length == loopEvery) || (index == mainArray.length - 1)) {
formattedArray.push(subArray);
subArray = [];
}
});
return formattedArray;
}
}]);