lundi 13 février 2017

Ember.computed.sort only works when presented directly on template

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