In my application I have a feed. Let's just say that these two elements are Tasks and Purchases.
In my channel, I want both of these elements to fill an array sorted by date. They have the same properties, such as name and date. As for displaying them in the user interface, I have no doubt that I can understand this.
The problem is getting the records.
store.find('task');
store.find('purchase');
Both of these arrays return a promise. I assume that I will need some kind of proxy server. But my current code will not update the array every time the property changes to an object in any of these arrays. And it will also not display correctly or change when objects are added to these stores.
Did anyone manage to combine two arrays of records into one? And if it functions as if it were only one array of records, which is updated on the fly perfectly with each exchange with the array and objects inside.
Any help appreciated! If you need more code, I will post a message!
UPDATE ::
Attached is JSBIN, which should display what I'm trying to do and the fact that it does not work.
http://emberjs.jsbin.com/jebugofo/2/edit?html,js,console,output
source
share