title: how to set index variable in primeng p-table like in ngFor
body: <p>Can any one assist me. I want to initialize index variable like
  <code>*ngFor=&quot;let d of sI.detail;let i=index&quot; </code></p>
  <p>In my p-table</p>
  <pre><code>&lt;ng-template pTemplate=&quot;body&quot; let-rowData &gt;
        &lt;tr class=&quot;text-center info&quot;&gt;
          &lt;td&gt;{{ totalHeader }} &lt;/td&gt;
          &lt;td&gt;
            &lt;span&gt;
              {{ rowData?.totalUnits }}
            &lt;/span&gt;
            &lt;span&gt;
              ({{ rowData?.totalSale }})
            &lt;/span&gt;
            &lt;span *ngIf=&quot;rowData.totalUnits &amp;&amp; rowData.totalSale&quot;&gt;
              /{{ (rowData.totalUnits/rowData.totalSale) | percent:'1.2-2' }}
            &lt;/span&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
      &lt;/ng-template&gt;```
  </code></pre>