I am using ng-repeat
to create a list of videos. I need to set rel
attribute of image in each row. I am trying in following way:
<li ng-repeat="video in top_videos >
<div class=" video-list" >
<a href="#">
<img src="images/aspect-px.png" rel="{{video.video_image}}" /></a>
<h3><a href="post.html">{{video.name}}</a></h3>
</div>
</li>
It is binding the video.name in h3
tag but not binding rel
with video.video_image
value. Instead of video.video_image
's value, it is binding it as a string i.e http://localhost:9000/%7B%7Bvideo.video_identifier%7D%7D
. My video.video_image
has valid image urls like http://my-cdn-server/vaild-image.jpg
.
I have lot's of theme related jQuery methods, which need a valid rel
value.
Please help me to make it work.