jeudi 5 novembre 2015

Ember Handlebars nested each not working

The following Ember Handlebars template renders the 1st row, but does not render the one inside the nested each (or inner each)

<table width="50%">
    {{#each someData.items as |item|}}
        <tr> <!-- This one RENDERS -->
            <td width="25%"><span class="boldTxt">{{item.fld1}}</span></td>
            <td width="25%">{{item.fld2}}</td>
        </tr>
        {{#each item in item.Reasons}}
            <tr> <!-- This one does not RENDER -->
                <td>{{item}}</td>
            </tr>
        {{/each}}
    {{/each}}
</table>

What is the issue??




Aucun commentaire:

Enregistrer un commentaire