It's works only like this:
sortedListings: Ember.computed.sort('model', 'sortDefinition')
when sortedListings is directly on template.
If some other property use it:
displayedListings: function () { .... }.property('sortedListings', 'statusFilter'),
and displayedListings is on template, sortedListings doesn't update.
Aucun commentaire:
Enregistrer un commentaire