0

I'm running a {{#each teams}} that's dynamically sorted in my html and am trying to get a counter that will run each time it can be ranked from 1-10. How do I do that? I am trying to add a var counter, but no idea where it can be placed to work. =( Trying to get the {{rank}} to run from 1-10.

{{#each teams}}
  <tr>
    <td class="text-center">{{rank}}</td>
    <td>{{name}}</td>
    <td class="text-center">{{points}}</td>
  </tr>
{{/each}}

Update: Thanks David Weldon, I'm checking, trying out the answer given on the post!

Kelvin Zhao
  • 2,243
  • 3
  • 22
  • 31

0 Answers0