Let's say we have an array of people in the JSON format. Each entity has about 100 attributes. The standard approach of using ng-repeat:
...
<tr>
<th>Attribute1</th>
<th>Attribute2</th>
...
<th>AttributeN</th>
</tr>
...
<tr ng-repeat="obj in jsonArray">
<td>{{ obj.attr1 }}</td>
<td>{{ obj.attr1 }}</td>
...
<td>{{ obj.attrN }}</td>
</tr>
Which produces the following table:
Attribute1 | Attribute2 | ... | AttributeN
------------------------------------------
value1.1 | value1.2 | ... | value1.N
value2.1 | value2.2 | ... | value2.N
...
valueN.1 | valueN.2 | ... | valueN.N
Instead of this, I need:
Attribute1 | value1.1 | value2.1 | ... | valueN.1
Attribute2 | value1.2 | value2.2 | ... | valueN.2
... | ... | ... | ... | ...
AttributeN | value1.N | value2.N | ... | valueN.N
So the question: how do I achieve this?
- Without manipulation "by hands" (js-jQuery), without leaving angular world - there will be some event handlers & etc.