jeudi 5 avril 2018

How to resolve a promise on a controller?

Hi I have a modelA and modelB

my modelA.js has something like this

  modelBs: DS.hasMany('modelB', { async: true })

and my modelB.js has something like this

  modelA: DS.belongsTo('modelA', { async: true })
  status: DS.attr('string'),

  statusOne: Ember.computed.filterBy('status', 'one'),
  statusTwo: Ember.computed.filterBy('status', 'two'),

However, I have a template that has a each loop for my modelA which looks something like this

 
   
   
 

My question is why does my returned 0 value whereas this user has more than 1 statusOne value




Aucun commentaire:

Enregistrer un commentaire