title: How to get current index on click angular2
body: <p>With angular2 is it possible to get the current <code>*ngFor</code> index value on click?
  I have a list of clients and I want to get their index value.</p>
  
  <pre><code>&lt;button ion-item *ngFor="let customer of customers" (click)="showRadio()"&gt;
      {{ customer.customer_name }}
  &lt;/button&gt;
  </code></pre>
  
  
  
  <pre><code>  showRadio(currentIndex) {
    //................    
  
    for(var j=0; j&lt;myResult[currentIndex].bookingIds.length; j++) {
      alert.addInput({
        type: 'radio',
        label: myResult[currentIndex].bookingIds[j],
        value: myResult[currentIndex].bookingIds[j],
        checked: false
      });
  
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NQ30m.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NQ30m.png" alt="enter image description here"></a></p>