Utilizing ng-repeat
to dynamically fetch my URL and using ng-src
to connect that URL through AngularJS. Here is the code:
<div class="x_panel" ng-repeat="data in allreviewdata|filter:search">
<div class="x_content">
<div class=" review-panel">
<div class="row" style="margin-bottom:30px;">
<div class="col-lg-4">
<span ng-bind="data.Channel"></span>
<span class="name_date" style="font-size:10px; color:#DCDCDC;" ng-bind="data.Date"></span>
</div>
<div class="col-lg-4 pull-right" style="text-align:right;" ng-bind="data.Sentiment"></div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="text-align:center;">
<img ng-src="data.pic_url" alt="logo" width="100px;" class="review-panel-logo">
</div>
However, I encountered issues with obtaining the correct URL. I also attempted {{data.pic_url}}
but received an error message. The following error was displayed:
If anyone has a solution to this problem, your help would be greatly appreciated!
Thank you in advance!