Skip to content

Instantly share code, notes, and snippets.

@ianpetzer
Created June 11, 2013 09:33
Show Gist options
  • Save ianpetzer/5755649 to your computer and use it in GitHub Desktop.
Save ianpetzer/5755649 to your computer and use it in GitHub Desktop.
App.CategoriesController = Ember.Array.extend({
filteredCategories: function() {
var filter = 'String value to compare lower case name to. ';
return this.get('model').filterProperty('nameLowerCase', filter);
}.property('model.@each.nameLowerCase')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment