mat-carousel-slide does not update when source changes.
HDeiro opened this issue · 0 comments
HDeiro commented
In order to optimize my project I'm using responsive images based on the size of the screen. Currently seems like when I change the image source it does not update the mat-carousel-slide
.
<mat-carousel
#carousel
[autoplay]="false"
[maintainAspectRatio]="false">
<mat-carousel-slide
*ngFor="let item of items"
[image]="item[propertyToBeUsed]"
overlayColor="#00000020">
</mat-carousel-slide>
</mat-carousel>
item
is an object with 3 properties, big, medium and small. It will be changed based on propertyToBeUsed
, that changes based on the size of the screen.
I think this should be fixed.