哇滑块和angular.js之间的冲突

时间:2016-04-23 12:52:11

标签: javascript angularjs

我有这段代码:

PRIMARY KEY

当我运行网站并打开firebug时,此div <div class="clearfix" id="image-block" ng-init="GetAllSingleProduct"> <div id="wowslider-container1" > <div class="ws_images" ng-repeat="image in allSingleProduct"><ul> <li><img ng-src="imagesT/data/images/{{image.imagename}}" alt="WIN_20150316_191218" title="WIN_20150316_191218" class=""/></li> </ul></div> <div class="ws_bullets" ng-repeat="image in allSingleProduct"><div> <a href="#" title="WIN_20150316_191218"><span><img ng-src="imagesT/data/tooltips/{{image.imagename}}" alt="WIN_20150316_191218"/>1</span></a> </div></div><div class="ws_script" style="position:absolute;left:-99%"><a href="http://wowslider.com">slider</a> by hasan</div> <div class="ws_shadow"></div> </div> </div> 不会出现。任何人都可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

如果您的div.ws_images代码未显示,则表示您的allSingleProduct数组中没有元素且ng-repeat没有循环播放。

确保allSingleProduct不为空。