I have data of such objects:
var details = {
3:{
2015-3-17 : 1,
2015-3-18 : 0,
routelines: "PASAY - CAGAYAN",
tripcode: 3
},
4:{
2015-3-17 : 0
2015-3-18 : 4
routelines: "PASAY - CAVITE",
tripcode:4
},
}
Now I plan to display them in a table, but I'm not sure how to start, since they are all objects. I want to get a result that looks like this:
tripcode | routlines | 2015-3-17 | 2015-3-18|
3 |PASAY - CAGAYAN | 1 | 0 |
4 |PASAY - CAVITE | 0 | 4 |
Does anyone know how to do this? I tried this, but unfortunately it does not work.
<div ng-repeat="detail in details">
<div ng-repeat="(key, value) in detail">
{{key}} : {{value}}
</div>
</div>
source
share