dimanche 22 janvier 2017

How to access model array by index in Ember

I am unable to access the EmberArray by index in the template. This is part of my route

model(){
  return RSVP.hash({
    games: this.store.findAll('game')
  })
}

And this is part of the template

<div>
  First game: 
</div>

There is no output that is rendered. Although if I iterate over it using


  <div></div>


This works fine. Any idea what I might be doing wrong, or what I should do different ?

Thanks




Aucun commentaire:

Enregistrer un commentaire