im trying to create a bootstrap carousel. So i use *ngFor for adding the elements and the carousel-indicators.(little circles indicating current position)
<li data-target="#myCarousel" *ngFor="#item of items; #idx = index" data-slide-to="idx" [class.active]="idx === 0" >
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".
Any idea how to assign the index-value ?