-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Description
First of all thank uoy for all the effort put into maintaining this extension, It's very helpfull. I have a setup as follows:
<div #carousel class="carousel carousel-slider center" materialize="carousel"
[materializeParams]="[{transition: 1000, interval: 6000}]">
<a class="carousel-item" *ngFor="let url of imageURLs">
<img [src]="url" >
</a>
</div>
I have tried using the example code that is inside this project:
....
@ViewChild('carousel', {static: false }) carouselElement;
...
window.setTimeout(() => {
this.imageURLs = [this.imageURLs[0], ...this.imageURLs]; // duplicate the first iamge
this.carouselElement.nativeElement.classList.toggle('initialized')
this.actions.emit('carousel');
this.actions.emit('carousel-slider');
}, 1000);
The result is an item fixed to the background that doesn't respond to carousel events, my question is, what is the proper way to add this items?
Metadata
Metadata
Assignees
Labels
No labels