Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- initialSelection: 'foobar',
- actions: {
- suggestSource: function(query, syncResults, asyncResults) {
- Ember.run.later(this, () => {
- this.set('searched', true);
- });
- if(query == 'test')
- syncResults(["testing is fun!"]);
- else
- syncResults(["test"]);
- },
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement