I have a simple case: some objects output via ng-repeat to html page. Every object has a path to image to show. Here's the problem: even though I have an empty array of objects, it seems like the browser tries to load image with incorrect URL (I see 404 errors via firebug). Code:
<ul class="thumbnails">
<div class="row-fluid" ng-repeat="item in searchItems" ng-if="$index%2==0">
<div class="span5" ng-repeat="item in searchItems|limitTo:2:$index">
<div class="thumbnail" style="border-style:none;box-shadow: 0 0 0 0;">
<b>{{item.name}}</b><br>
<img height="160" src="{{item.imageUrl}}" class="img-rounded"><br>
</div><!--thumbnail-->
</div><!--span-->
</div>
</ul>
Error that I see in firebug:
NetworkError: 404 Not Found - http://localhost:8000/app/%7B%7Bitem.imageUrl%7D%7D
So it seems like the browser tries to load image before angularjs processes its instructions. Besides this error, everything is working well. However, I want to eliminate this problem. How can I do this?