角度5,轻滑滑块

时间:2018-06-23 10:09:47

标签: slider angular5 flickity

每当我在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>

0 个答案:

没有答案