Im getting started with emberjs, and I have connected my ember app to an API, and my models working fine. I can display the model in my template, but how can I filter them? Example, this is my model:
import DS from 'ember-data';
export default DS.Model.extend({
placeofdamage: DS.attr('string'),
ees: DS.attr(),
type: DS.belongsTo('type'),
brand: DS.belongsTo('brand')
});
How can I display ex. only BMW? With this method:
<select class="form-control" id="selectBrand">
<option></option>
</select>
Thank you for any further reply.
Aucun commentaire:
Enregistrer un commentaire