Skip to content

Instantly share code, notes, and snippets.

@mockra
Created October 25, 2014 02:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mockra/2901568a952c0b8f043a to your computer and use it in GitHub Desktop.
Save mockra/2901568a952c0b8f043a to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Controller.extend({
searchText: null,
searchResults: function() {
var searchText = this.get('searchText');
if (!searchText) { return; }
return this.store.find('post', {name: searchText});
}.property('searchText')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment