Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Sort by unsaved property of model

$
0
0

@SpaceMaster wrote:

Tell me please, how can i sort model by unsaved prop.

I have a User model, and she uses rest api adapter, but i set status online through websockets, and sort is not refresh until i make "user.save()". I dont wont use save() because it generate too much requests.

Ember 2.2

sortProperties: ['online'], sortByOnline: Ember.computed.sort('model', 'sortProperties')

Any ideas?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles