File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
libs/blog/ad-banner/ui/src/lib/banner-carousel Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,21 @@ import { AlInfiniteSliderDirective } from '../infinite-slider-directive/al-infin
12
12
template : `
13
13
<div class="overflow-hidden">
14
14
<div class="flex">
15
- <al-ad-image-banner
16
- *alInfiniteSlider="let banner of banners(); msPerSlide: msPerSlide()"
17
- class="flex-shrink-0 flex-grow-0 basis-full"
18
- [banner]="banner"
19
- />
15
+ @if (banners().length > 1) {
16
+ <al-ad-image-banner
17
+ *alInfiniteSlider="
18
+ let banner of banners();
19
+ msPerSlide: msPerSlide()
20
+ "
21
+ class="flex-shrink-0 flex-grow-0 basis-full"
22
+ [banner]="banner"
23
+ />
24
+ } @else if (banners().length === 1) {
25
+ <al-ad-image-banner
26
+ class="flex-shrink-0 flex-grow-0 basis-full"
27
+ [banner]="banners()[0]"
28
+ />
29
+ }
20
30
</div>
21
31
</div>
22
32
` ,
You can’t perform that action at this time.
0 commit comments