I see in console that my browser is making request to a link that does not exist as I have placed it in data-original of my image. But this is a malformed URL. Sample of this is given below:
http://localhost:8080/%7B%7Bobject.array[0].url%7D%7D
I have an <img src="" />
tag inside ng-repeat. I want my data-original attribute to be url encoded and also prevent javascript from making such calls where
{{object.array[0].url}}
is given.
Sample code is given below:
<div ng-repeat="object in objects">
<img src="constant.jpg" data-original="{{object.array[0].url}}" />
</div>
I cannot use ng-src
here as the link of image given in src attribute will be constant here.