我有一个图像列表,如果我使用ng-repeat,则会出现jQuery错误
GET http:// SOME IP :8001/%7B%7Bimage%7D%7D 404 (NOT FOUND)
似乎ng-repeate创建了一个空图像?但是在console.log中没有空条目......
控制器:
appControllers.controller('remindersCtrl', ['$scope', '$http',
function($scope, $http){
console.log("reminders controller heyo");
var staticImgPath = "static/img/pages/reminders/"
$scope.reminderWastesTypes = [
staticImgPath + 'Biolski-odpadki.png',
staticImgPath + 'Embalaza.png',
staticImgPath + 'Ostali-odpadki.png',
staticImgPath + 'Papir.png',
staticImgPath + 'Steklo.png',
];
}]);
HTML
<ul rn-carousel class="image" rn-carousel-control attribute>
<li data-ng-repeat="image in reminderWastesTypes">
<img src="{{image}}">
</li>
</ul>