Imagine I have the code below:
<div>
{{#each questions}}
<div id="question_{{@index}}">
{{#each this.answers}}
<div id="answer_{{howToGetThisIndex}}_{{@index}}">
{{this}}
</div>
{{/each}}
</div>
{{/each}
</div>
Is there a way to access the outer loop's index (question index) within the inner (answer) loop? To clarify, I would like the id
to be in the format of
"answer_questionIndex_answerIndex"