I have an object like below on which I am trying to do ng-repeat and create table
var data = {
"1": [
{
"row": "1",
"name": "Acc"
},
{
"row": "1",
"name": "Eco"
},
{
"row": "1",
"name": "Mono"
},
{
"row": "1",
"name": "Mini"
}
],
"2": [
{
"row": "2",
"name": "Mono"
},
{
"row": "2",
"name": "Eco"
}
]
}
I have tried below code where I want row wise data but all the values are getting displayed column wise http://jsfiddle.net/g92zLqa1/2/
The excepted output is
<!--Expected Output -->
<br/><br/>
<h3><b>Expected Output</b></h3>
<table border="1">
<tr>
<th>1</th>
<th>2</th>
</tr>
<tr>
<td>Acc</td>
<td>Mono</td>
</tr>
<tr>
<td>Eco</td>
<td>Eco</td>
</tr>
<tr>
<td>Mono</td>
<td></td>
</tr>
<tr>
<td>Mini</td>
<td></td>
</tr>
</table>
Any help on this will be really appreciated.