Angular JS轮播无法正常工作

时间:2013-10-30 17:30:31

标签: javascript html5 angularjs twitter-bootstrap

我遇到以下角度轮播问题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>

1 个答案:

答案 0 :(得分:0)

删除&#39;数据&#39; rn-carousel指令面前。