How to get the each loop index in meteor.@index is not working.Please help me.
Template.apichange.helpers({
api_rest_data: function ()
{
return Session.get("api_rest_list");
}
});
{{#each api_rest_data}}
<tr>
<td><select id="methodname"> <option id="optn" value="{{ method_name }}"> {{ @index }} </option></select></td>
</tr>
{{/each}}