Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using each twice with a inner child array error #1833

Open
hxgqh opened this issue Mar 6, 2022 · 2 comments
Open

using each twice with a inner child array error #1833

hxgqh opened this issue Mar 6, 2022 · 2 comments

Comments

@hxgqh
Copy link

hxgqh commented Mar 6, 2022

data like thie:

[{
   name: 'name',
   subArr: [{
      name: 'name1',
      code: 'code1'
   }]
}]

template like this:

{{#each items}}
  {{ name }}
  {{#each subArr}}
  {{ name }}
  {{/each}}
{{/each}}

{{#each items}}
  {{ name }}
  {{#each subArr}}
  {{ code }}
  {{/each}}
{{/each}}

render result in the second "each" block, subArr.code will not be rendered.

@hxgqh hxgqh changed the title using each twice with a inner sub array error using each twice with a inner child array error Mar 6, 2022
@Baertie
Copy link

Baertie commented Dec 14, 2022

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants