I'm using a Moltin Cart which I want to loop through, so I can read it in Angular JS and then
I load the cart into a variable, which I'd like to <div ng-repeat-start="item in cart.contents"> and loop through the items in the cart.
The issue I'm having is really a pretty basic JavaScript issue, that if I console.log the cart.contents I get this:
Object{
33bb9f991617377b9b8333a79ca9ce2c: Object { ... cart contents... },
1ba14b804d0d81e49397b004e5f1c6d1: Object { ... cart contents... },
33bb9f991617377b9b8333a79ca9ce2c: Object { ... cart contents... },
}
Is there a way that I can fix this either in:
- Laravel
- Angular JS
- or Classic JavaScript
angular.forEachit to get cart contents.angular.forEach?