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

Filter the store result

$
0
0

@GELight wrote:

Hi,

. what is the best way to filter my store result? If I try any way to use the filter method, my result will be NULL.

This is my current code:

categories: computed('store', function() { return this.get('store').findAll('category').then((categories) => { categories.filter((category) => { return (category.get('title').indexOf('*') === -1); }); }); }),

Best regards, Mario

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles