title: Primeng How get rowIndex of row expanded?
body: <pre><code> &lt;p-dataTable [value]="services" [paginator]="true" expandableRows="true" rowExpandMode="single"&gt;
  ...&lt;/p-dataTable&gt;
  </code></pre>
  
  <p>exists some like this</p>
  
  <pre><code>&lt;ng-template let-col let-period="rowData" let-ri="rowIndex"   pTemplate="body"&gt;...&lt;/ng-template&gt;
  </code></pre>
  
  <p>for DataTable </p>