There are two similar functions on Ember JS service "store". In this example they work alike.
find
function
@service store;
async model(params) {
return this.store.find('rental', params.rental_id);
}
findRecord
function
@service store;
async model(params) {
return this.store.findRecord('rental', params.rental_id);
}
Are they different? Or just an alias?
Aucun commentaire:
Enregistrer un commentaire