OwlCarousel Angular js image src tag not updating the value.

廉价感情. 提交于 2020-01-17 05:36:33

问题


Have a slide build on owl carousel. Have tried to add feature lazy load to the image.

Below is my image tag written in html and its not showing the first image in the slide.

   <img class="multilink-image owl-lazy"
     data-src="{{ ::mycontroller.src }}">

In my browser it seams the above tag becomes as.

<img class="multilink-image owl-lazy" 
  data-src="//www.sampel.com/media/test.jpg" 
  src="{{ ::mycontroller.src }}">

The src tag is not updating the value. But on sliding the second image onwards its working fine. But still the first image fails to load.

Any help please

来源:https://stackoverflow.com/questions/33233657/owlcarousel-angular-js-image-src-tag-not-updating-the-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!