【问题标题】:Angular JS carousel not workingAngular JS轮播不工作
【发布时间】:2013-11-10 11:28:28
【问题描述】:

我在使用以下角度旋转木马时遇到问题click here 我的角度控制器似乎无法正常工作,它正在调用图像。click here for my source code 我非常遵循演示中演示的代码。但是,让我的图像显示出来我没有任何乐趣。有人可以准确指出我哪里出错了吗?

  <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>

【问题讨论】:

标签: javascript html angularjs twitter-bootstrap


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-23
    • 2012-03-10
    • 2018-07-27
    • 2014-01-05
    • 2018-09-14
    相关资源
    最近更新 更多