I have an array of data and I need to iterate over it in my hbs template:
{{#each-in myArray.[0] as |key value|}}
<th>
{{value}}
</th>
{{/each-in}}
{{#each-in myArray.[1] as |key value|}}
<th>
{{value}}
</th>
{{/each-in}}
How do I declare a variable and increase it to replace the hardcoded value?
I tried to wrap with {{#let}}
but that did not worked:
{{#let index=0}}
{{#each-in myArray.[index] as |key value|}}
<th>
{{value}}
</th>
{{/each-in}}
{{/let}}
I'm using ember 2.13.