I need to create a carousel that shows pictures from a variable in the .ts. I planned using ngFor.
I have a static Bootstrap 4 carousel:
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="assets/fortress.jpg" class="d-block w-100 carousel-pic" alt="...">
</div>
<div class="carousel-item">
<img src="assets/fortress.jpg" class="d-block w-100 carousel-pic" alt="...">
</div>
</div>
</div>
And I have a variable in the .ts file called pics:

Now I tried putting the ngFor the carousel, and the active carousel just the first picture. Problem:
- The carousel are off. Just showing three. When I try setting the ngFor there, it doesn't work.
- Slide shows first picture (active) okay but the second slide show the same picture (because the loop starts again) and then it stops, doesn't show the third picture.
When I tried just setting the ngFor as carousel-item, it doesn't work because it requires active class. Also, the item?[0].pin_photos.url just gets the first picture.
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="http://MYURL/public/PinPhotos/{{item?.pin_photos[0].url}}"
class="d-block w-100 carousel-pic" alt="...">
</div>
<div *ngFor="let pic of pics">
<div class="carousel-item">
<img src="http://MYURL/public/PinPhotos/{{pic.url}}" class="d-block w-100 carousel-pic" alt="...">
</div>
</div>
</div>
</div>
What am I missing ?