I'm new Angular developer who needs help with ng-repeat. I have some complex json which i want to print in a table(<table>
) or in orderd list (<ol>
).
JSON
{
"arrays": [
[
[1,2,3,4],
[2,3,4,5],
[3,4,5,6]
],
[
[1,2],
[2,3],
[4,5]
]
]
}
so, i have one array which contains n-arrays(2 in this example) and each of n-arrays contains the same number(3 in this example) of number-arrays. Each number-array of n-array part contains also the same number(first part of number-arrays has size 4 and the second part number-arrays has size 2)
And now i need something like that
# | Numbers
---------------------------------------
1 | 1 2 3 4 : 1 2
2 | 2 3 4 5 : 2 3
3 | 3 4 5 6 : 3 4
OR
1. 1 2 3 4 : 1 2
2. 2 3 4 5 : 2 3
3. 3 4 5 6 : 3 4