每当我在li滑块中添加循环不起作用时,我都会使用flickity滑块 在angular5
<div class="slider slider--ken-burns" data-arrows="true" >
<ul class="slides" >
<li *ngFor="let data of img">
<img alt="Image" src="http://192.168.100.107/gservices/public/paketeFiles/{{data.image}}" />
</li>
</ul>
</div>
无循环
<div class="slider slider--ken-burns" data-arrows="true" >
<ul class="slides" >
<li >
<img alt="Image" src="../../assets/img/blog-3.jpg" />
</li>
</ul>
</div>