title: How to get index from template inside prime-ng carousel in Angular2?
body: <p>I have used below code to show data uploaded from excel inside template tag using prime-ng carousel in angular 2.  </p>
  
  <p><strong>exceldata.html:-</strong>    </p>
  
  <pre><code>&lt;p-carousel headerText="Category" [value]="ExcelRowDatas" class="pcaro"&gt;
     &lt;template ngFor let-ExcelRowData [ngForOf]="ExcelRowDatas" let-i="index" pTemplate="item"&gt;
         &lt;div class="ui-grid ui-grid-responsive"&gt;
            &lt;div class="ui-grid-row"&gt;
               &lt;div class="ui-grid-col-6"&gt;Index No.&lt;/div&gt;
               &lt;div class="ui-grid-col-6"&gt;({{i}})&lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="ui-grid-row"&gt;
               &lt;div class="ui-grid-col-6"&gt;Place&lt;/div&gt;
               &lt;div class="ui-grid-col-6"&gt;{{ExcelRowData['Place']}}&lt;/div&gt;
            &lt;/div&gt;           
         &lt;/div&gt;
     &lt;/template&gt;
  &lt;/p-carousel&gt;
  </code></pre>
  
  <p><strong>exceldata.ts:-</strong></p>
  
  <pre><code>let ExcelRowDatas = [{"Place": "New York"}, {"Place": "London"}, {"Place": "Paris" }]
  </code></pre>
  
  <p><strong>Plunker:-</strong>  <a href="https://plnkr.co/edit/PUOlAQ7abbAJ7el4ciQ2?p=preview" rel="nofollow noreferrer">https://plnkr.co/edit/PUOlAQ7abbAJ7el4ciQ2?p=preview</a></p>
  
  <p>I could not able to get index of the row inside template tag inside ng-carousel. But I was able to get index inside template without using ng-carousel. How can I get the index value inside ng-carousel with template?</p>