What is the correct way of getting the index of an array when iterating over it using Ember Handlebars?
ember.js, handlebars.js, indexing
Solution
Solution is not as nice as I'd hoped, but this works:
{#each controller.content.assetAllocation.class}}
{{_view.contentIndex}}
{{/each}}
Problem
``` {#each controller.content.assetAllocation.class}} {{@index}} {{/each}} ``` I'm trying to run the code above, which is supposed to output the index of the array, but it produces an error saying: "Uncaught SyntaxError: Unexpected token , "