If your data:
[
{innerdata: ['foo', 'bar']},
{innerdata: ['foo', 'bar']}
]
Then it works as intended, because this index is not a counter.
{{
Outer Index: {{index_1}}<br>
{{
Inner Index: {{index_1}}<br>
{{/eachIndexed}}
{{/each}}
Output:
: 1
: 1
: 2
: 2
: 1
: 2
, : fooobar.com/questions/307961/...
(function() {
var positionCounter = 1;
Handlebars.registerHelper('position', function() {
return positionCounter++;
});
})();
:
{{
{{
{{position}}
{{/eachIndexed}}
{{/each}}