Quantcast
Viewing all articles
Browse latest Browse all 4826

Sorting model issu

@ioanszabo wrote:

Hi,
I want to sort a list of users.

import Ember from 'ember';

export default Ember.Controller.extend({
    sortProperties: ['first_name:asc', 'last_name:asc'],
    sortedModel: Ember.computed.sort('model', 'sortProperties')
});

1) Then I pass sortedModel to a component. The issue is that when I update a user the list is not actualized.

2) I tried passing in the model directly and sort it in component, but in this situation my list contains only one user the logged user.

How should I proceed further?
Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles