In my controller, I have a data structure:
this.people = [
{name: person1, spent: [1, 3, 5,...]},
{name: person2, spent: [4, 57, 3,...]},
...
];
I would like to extract that data to a table-like structure in a way, that names are columns and elements of the spent table are rows of the corresponding column (where the column for each person can be of different length):
person1 | person2
1 | 4
3 | 57
5 | 3
Can I do it somehow with AngularJS and ng-repeat? Or in any other way that will not force me to explicitly loop through the elemens of the 'spent' for each person?