title: How to get index for parent loop in Handlebars template?
body: <pre><code>&lt;script id="contact-row" type="text/x-handlebars-template" &gt;
  
      {{#each rows}}
        &lt;tr&gt;
             {{getInputField @index "country" country }}
  
            {{#each contactData}}
              {{getInputFieldForData @index "contractName" contractName }}
            {{/each}}
        &lt;/tr&gt;
      {{/each}}
  </code></pre>
  
  <p></p>
  
  <p>I want to get the index of the parent in the inner #each loop. I tried ../@index but that gives error. </p>