@portugaleren wrote:
I have the following code:
model() { return this.store.findAll('category').then((categories) => { return categories.sortBy('name'); }); },
Data is read and sorted the first time the route is accessed but not when I add or delete rows. These changes are not shown on the template until I do a reload of the page even I can see them in the store.
If I just do the simplereturn this.store.findAll('category')
changes are shown immediately but of course not sorted.
Any clues to this problem?
Posts: 3
Participants: 2