I have a collection of N
items:
$scope.collection = ["item 1", "item 2", "item 3" ... ,"item N"]
My goal is to convert this collection into a table with X
columns and N/X
rows.
Is it feasible to achieve this using the ng-repeat
directive?
I am aware that I can restructure the collection like this :
$scope.collection = [["item 1", "item 2", "item 3"], ["item 4", "item 5", "item 6"] ...]
and then utilize nested ng-repeat.
However, I would like to ascertain if maintaining a single-level array is also a viable option.