Need a separate data store? Maybe a temporary one for search results? Go for it!
// app/components/search-box.js
import Ember from 'ember';
export default Ember.Component.extend({
store: Ember.inject.service('search-store'),
results: function() {
return this.get('store').query('search', { query: "I haz cheese" });
}
});
// app/services/search-store.js
import DS from 'ember-data';
export default DS.Store.extend({
mySearchStore: true
});
How would one apply a custom adapter to this service?