File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
src/app/views/base/carousels Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 102102 </ p >
103103 < app-docs-example href ="components/carousel/#with-indicators ">
104104 < c-carousel (itemChange) ="onItemChange($event) " [activeIndex] ="1 " [dark] ="true " [interval] ="5000 " direction ="prev ">
105- < c-carousel-indicators />
105+ < c-carousel-indicators #indicators ="cCarouselIndicators ">
106+ < ng-template cTemplateId ="carouselIndicatorsTemplate ">
107+ @for (slide of slides[1]; track slide; let i = $index) {
108+ < button
109+ [attr.data-coreui-target] ="i "
110+ type ="button "
111+ (click) ="indicators.onClick(i) "
112+ [class] ="{ active: indicators.active === i, border: '1px' } "
113+ [attr.aria-current] ="indicators.active === i ">
114+ < img
115+ [src] ="slide.src "
116+ alt ="{{slide.title}} "
117+ class ="d-flex w-100 "
118+ loading ="lazy "
119+ />
120+ </ button >
121+ }
122+ </ ng-template >
123+ </ c-carousel-indicators >
106124 < c-carousel-inner >
107125 @for (slide of slides[0]; track slide.src) {
108126 < c-carousel-item >
You can’t perform that action at this time.
0 commit comments