I have the following setting to display my order by date: 
I have the following template that shows each order for a given week: (I cut some html for short)
Template
{{#each ordersByDate in ordersByDateOfWeek}} <div class="orders-by-date"> <div> <span>{{order-date-formatted ordersByDate.date}}</span> </div> {{#each order in ordersByDate.orders}} {{order.number}} {{! updates correctly}} {{order.market.name}} {{! a hasmany property called here, does not update}} {{/each}} </div> {{/each}
computed property :
ordersByDateOfWeek: function () { var result = [];
What he does is that he creates an array of such objects:
[ { "date":"2014-12-08", "orders":[// order objects here], // some more properties }, { "date":"2014-11-08", "orders":[], }, { "date":"2014-10-08", "orders":[], }, ]
I have been trying for several hours and cannot get around it to make it work. Does my intuition say this is related to promises? But there are real Ember objects in the "orders: []" array, so I have to work, I think.
I hope someone can point me in the right direction.
Thanks so much guys!
Edit: to be 100% clear: my order model consists solely of orders. I create this custom object myself. That's why data binding breaks, I think.
source share