I am just getting started with ember... I managed to save the data to firebase but can't get it to the client, this is my code:
Route:
export default Ember.Route.extend({
model() {
return this.get('store').findAll('post')
}
});
template:
<h2> </h2>
modeljs:
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string'),
});
I did manage to save an item to firebase with a form on my website so the model is sending data to firebase but I am not sure how to get it back to the view?
Aucun commentaire:
Enregistrer un commentaire