I have the data of objects like this:
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 am planning to display them in table but I am not sure how to start since they are all objects. I want to achieve the output which looks like this:
tripcode | routlines | 2015-3-17 | 2015-3-18|
3 |PASAY - CAGAYAN | 1 | 0 |
4 |PASAY - CAVITE | 0 | 4 |
Is there someone know how to do it? I tried this but unfortunately it's not work.
<div ng-repeat="detail in details">
<div ng-repeat="(key, value) in detail">
{{key}} : {{value}}
</div>
</div>