[
{date: “01/01/2015”, New : “hello there”, Old : “bye”},
{date: “01/02/2015”, Spam: “data”, New : "hello again}
]
I need to loop through each object in the JSON and render such that the keys in the JSON objects are headers, and the values of the JSON objects are subvalues:
Correct me if I am wrong, but I am not sure that would work because using ng-repeat I would need the keys of the values in the JSON object to output any data.
No, you don’t need to know the key. ng-repeat will give you a variable for each element/record in your array.
You can basically do what I’ve done on ion-slide here, but put the ng-repeat on your <div class="card">
Then you can access {{image.date}}, {{image.New}} and {{image.Old}} etc, except of course that you won’t call yours “image”