Skip to content

3-levels nested #each not working as expected! #2079

Answered by jaylinski
ramrami asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is a bug: #1686

As a workaround you can use @root:

<ul class="people_list">
  {{#each @root.people}}
    <li>Loop 1 - {{@index}} - {{this}}</li>
    {{#each @root.people}}
    	<li>Loop 2 - {{@index}} - {{this}}</li>
        {{#each @root.people}}
        	<li>Loop 3 - {{@index}} - {{this}}</li>
        {{else}}
        	<li>Loop 3 - No data!!</li>
        {{/each}}
    {{/each}}
  {{/each}}
</ul>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ramrami
Comment options

Answer selected by ramrami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants