Data-Slide-to Dynamic Angular

<div  *ngFor=" let item of list ;let i=index"  >
  <li id="gallary" data-bs-target="#carouselExampleFade" [attr.data-bs-slide-to]="i">
   	 <img class="d-block w-100 carousel-pic img" src={{item}} alt="img" >

      </li>
</div>
Farwa Miraj