繁体   English   中英

角JS转盘不工作

[英]Angular JS carousel not working

我在使用以下角度传送带时遇到问题, 请单击此处,我的角度控制器似乎无法正常工作,正在呼出图像。 单击此处获取我的源代码,我已经完全遵循了演示中演示的代码。 但是我没有任何让我的图像显示的喜悦。 有人可以准确指出我要去哪里了吗?

  <body np-app="myApp" ng-controller='demoController'>
<div>
    <ul data-rn-carousel rn-carousel-buffered rn-carousel-index="currentSport" class="image">
        <li ng-repeat="image in sportImages" style="background-image:url({{ image }});">
            <div class="layer" ng-bind-html-unsafe="image"></div>
        </li>
    </ul>

    <button ng-click="currentSport = currentSport - 1" ng-disabled="currentSport == 0">prev</button>
    <button ng-click="currentSport = currentSport + 1" ng-disabled="currentSport == sportImages.length - 1">next</button>

</div>
</body>

删除rn-carousel指令前面的“数据”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM