Listening when new records are added to the store via a computer property
问题 I am pushing records into my store using websockets. I am displaying items on the screen via a handlebars template {{#each item in items}} <div>{{item.name}}</div> {{/each}} In my controller I have the items collection items : function() { var items = this.store.find('items'); return items.filterBy({type : "NEW"}); }.property() Now, when new records are added to the store, I need to update the items automatically. items : function() { var items = this.store.find('items'); return items