我正在尝试通过使用angular-carousel插件来实现轮播,但没有任何效果,只是空屏幕。
这是我的html代码:
<body ng-app="carouselApp">
<div ng-controller="carouselController">
<ul rn-carousel>
<li>
<img alt="" src="http://image.shutterstock.com/display_pic_with_logo/1860644/294403301/stock-photo-soup-vegetable-soup-bowl-294403301.jpg">
</li>
<li>
<img alt="" src="http://image.shutterstock.com/display_pic_with_logo/511399/210391630/stock-photo-grilled-chicken-breast-with-fresh-vegetables-selective-focus-210391630.jpg">
</li>
<li>
<img alt="" src="http://image.shutterstock.com/display_pic_with_logo/522076/266014253/stock-photo-fried-fish-fillet-atlantic-cod-with-rosemary-in-pan-266014253.jpg">
</li>
<li>
<img alt="" src="http://image.shutterstock.com/display_pic_with_logo/502972/264191042/stock-photo-bowl-of-healthy-fresh-fruit-salad-on-wooden-background-top-view-264191042.jpg">
</li>
<li>
<img alt="" src="http://image.shutterstock.com/display_pic_with_logo/356269/162416498/stock-photo-closeup-of-fried-rosemary-potato-wedges-in-a-rustic-setting-162416498.jpg">
</li>
</ul>
</div>
</body>
应用程序和控制器代码:
var app = angular.module('carouselApp',['angular-carousel']);
app.controller('carouselController', function($scope) {
});
- jsFiddle 示例:https ://jsfiddle.net/anatoly314/n0qfj4dk/6/
- plunker 示例:http ://plnkr.co/edit/ERDtcVNdKSVTcqtH2XOT?p=info
我正在使用angularjs 1.4.5
and angular-carousel 0.3.13
,我做错了什么?