mercredi 9 août 2017

Handlebars (Ember.js): nested loop duplicates results

I'm currently working with an Ember component that takes a variable model (which consists in an array of model entries), and with variable keys. In my component's template I have:

<table>
  
    <tr>
       
         <td></td>
        
    </tr>
  
</table>

The result of that is a set of tds repeated twice:

<tr>
  <td>one</td>
  <td>two</td>
  <td>one</td>
  <td>two</td>
</tr>

This makes no sense to me? Is this some idiosyncrasy of the get helper?




Aucun commentaire:

Enregistrer un commentaire