Lets say i take some photo in according to id of something and put it in an array like:
data.attributes.photos = [ "12.jpg", "12_1.jpg", "12_2.jpg" , 12_3.jpg, ... ]
and use it with ngFor like :
<ngb-carousel>
<ng-template ngbSlide *ngFor="let photo of navbar.infoData.attributes.photos">
<img class="card-img-top img-fluid w-full" [src]="photo" alt="Okul Fotoğrafı Bulunamadı">
</ng-template>
</ngb-carousel>
now there is something called ng-src and on-error in Angular which shows a sample image when there is no any image given in the array.
like this :
<ngb-carousel>
<ng-template ngbSlide *ngFor="let photo of navbar.infoData.attributes.photo">
<img class="card-img-top img-fluid w-full" ng-src={{photo}}} err-SRC="http://google.com/favicon.ico" alt="Okul Fotoğrafı Bulunamadı">
</ng-template>
</ngb-carousel>
It may work but since i dont know the number of images. is it possible to not show the image if it does not exist in the url of my src?