title: Angular2 *ngFor setting index as attribute inside same tag
body: <p>im trying to create a bootstrap carousel. So i use *ngFor for adding the elements and the carousel-indicators.(little circles indicating current position)</p>
  
  <pre><code>&lt;li data-target="#myCarousel" *ngFor="#item of items; #idx = index"  data-slide-to="idx" [class.active]="idx === 0" &gt;
  </code></pre>
  
  <p>I am setting the active class entry by [class.active]="idx === 0" and it works fine.
  But when i am trying to set data-slide-to="idx" the result is not the wanted index as number but the string "idx".</p>
  
  <p>Any idea how to assign the index-value ?</p>