Ng-table: How to to add row number

Created on 7 Jul 2015  ·  2Comments  ·  Source: esvit/ng-table

Dear All,

is there any way to add number of row?
I tried with {{index}} but on each page it is reset the index/

Cheers

Most helpful comment

Maybe something like:

<table ng-table="tableParams">
  <tr>
    <td>{{ (tableParams.page() * tableParams.count()) + index }}</td>
  </tr>
</table>

All 2 comments

Maybe something like:

<table ng-table="tableParams">
  <tr>
    <td>{{ (tableParams.page() * tableParams.count()) + index }}</td>
  </tr>
</table>

I'm assuming this resolved your issue, so closing it. Chime in if that's not the case....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  30Comments

penchiang picture penchiang  ·  5Comments

jlebleu picture jlebleu  ·  3Comments

raul1991 picture raul1991  ·  6Comments

Ebolon picture Ebolon  ·  12Comments