Created
October 25, 2014 02:34
-
-
Save mockra/2901568a952c0b8f043a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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