angular6 uses ngx-swiper-wrapper@5.3.8 or 6 version, and finds that it cannot be played
I follow this
https://www.jianshu.com/p/54a.
html:
<div class="swiper-container" [swiper]="swipeleft">
<div class="swiper-wrapper">
<div class="swiper-slide" *ngFor="let item of textCarouselleft">
<a target="_blank" :href="{{item.href}}">
{{item.title}}
</a>
<span>{{item.date}}</span>
</div>
</div>
</div>
ts:
this.swipeleft = {
slidesPerView: 18,
direction: "vertical",
loop: true,
autoplay: true,
speed: 1000,
};
less:
I do not know why, I changed two versions, both are like this, slidesPerView: 18, this I set 18, but only 8, I do not know what is wrong with me, which god to help, thank you very much