Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ngx-hm-carousel [autoplay-speed]="5000" [autoplay]="true" [infinite]="true" [align]="left" [between-delay]="2000" class="carousel c-accent">
- <section ngx-hm-carousel-container class="content">
- <article class="item cursor-pointer" *ngFor="let item of data" ngx-hm-carousel-item>
- <div class="img" [style.backgroundImage]="'url('+item.url+')'">
- </div>
- </article>
- </section>
- <ng-template #carouselDot let-model>
- <div class="ball bg-accent" [class.visible]="model.index === model.currentIndex"></div>
- <div class="my-progress">
- {{model2.progress}} //***undefined***
- </div>
- </ng-template>
- <ng-template #carouselProgress let-model2>
- <div class="progress" [style.width]="model2.progress + '%'"></div>
- </ng-template>
Add Comment
Please, Sign In to add comment