I am developing website with AngularJS.
I grabbed the json data from the server. and I need to display it on the table.
Json data format is
{
{"a" :1,"b": 2,"c":3},
{"a" :3,"b": 4,"c":5},
{"a" :1,"b": 2,"c":3}
}
The problem is each bracket's names; a, b,c are the dynamic data from the server so that the server guy can change the name.
There is my psedocode
<tr ng-repeat = "jsonObj in jsonArray">
<td ng-repeat = "name in jsonObj">{{name}} </td>
</tr>
it doesn't work. I think I know what it doesn't work. but I cant think of how to change
without knowing the name of json array.
Since a, b,c are dynamic, i can't just type {{jsonObj.a}} {{jsonObj.b}}
I hope anyone can help me to fix this. Thank you