I am having a problem. I have an array.
myArray = [{
"John": [{"salary":"15K","year":"2013"},{"salary":"20K","year":"2014"}]
},{
"Ben": [{"salary":"17K","year":"2013"},{"salary":"20K","year":"2014"},{"salary":"25K","year":"2014"}]
}];
I want it to display in a table.The array can have much more data. Please someone, tell me If I am arranging the array wrong or something. I am stuck in this for sometime now.
a table for each user :
http://plnkr.co/edit/LSkW8mWwloDF65iahbAH?p=preview
and in controller :
try like this.
It will be great if you specified the format of the table. If you want a table like table-heads as name and values. In names we can show the name and inside values there is another table of salary and year. For such a table you can follow steps as given below.