These docs are for v3.2. Click to read the latest docs for v5.0.

Discussions

Ask a Question
Back to All

Nested accordion not able to access @index of parent

I have a nested accordion here: https://imcw.azurewebsites.net/Programs/Mentoring/Find-a-Mentor

This template:

{{#each Panels}}
{{#each Mentors}} {{/each}}
{{/each}}

I need to get the @index of the parent accordion to create unique identifiers for the children, but {{@../index}} always returns null. Do you have an example on nested #each loops that access the parent index?