vendredi 15 décembre 2017

Can't Display Records from Ember.js Data in Template

I want to show records from the Ember.js data store in the my template. In my controller I have the following code:

orders: null,

[...]

openOrderModal: function(name) {
  $('.ui.' + name + '.modal').modal('show');
  var orders = this.get('store').peekAll('orders');
  console.log(orders);
  this.set('orders', orders);
},

I peek all records from the data store and save it to a variable. In the template i have a loop. But it doesn't work.


   


Can you help me?

Kind regards




Aucun commentaire:

Enregistrer un commentaire