I am currently trying to filter data from a firebase DB using ember data. I would like the data to be filtered as the user is typing in the search box based on the data attribute name.
This is currently the model:
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr(),
requirements: DS.attr(),
skills: DS.attr()
});
This is currently the route:
import Ember from 'ember';
export default Ember.Route.extend({
model() {
var obj = this.store.findAll('quest');
return obj;
}
});
The current firebase DB is filled with dummy data but also has the automatically generated ID that is generated by using the push command, not sure if this poses any issues. I have tried filtering the data using filter in the route but had no success and this is my first time using ember and firebase. Thank you.
Aucun commentaire:
Enregistrer un commentaire