Javascript angularjs ngrepeat img嵌入

Javascript angularjs ngrepeat img嵌入,javascript,angularjs,angularjs-ng-repeat,Javascript,Angularjs,Angularjs Ng Repeat,我从昨天开始学习Angular,因此以下内容可能有意义,也可能没有意义: <div data-ng-repeat="social in socialnets"> <a href="{{social.url}}" target="_blank"> <img src="{{social.img}}" alt="{{social.alt}}" height="50"> {{social.name}} </a>

我从昨天开始学习Angular,因此以下内容可能有意义,也可能没有意义:

<div data-ng-repeat="social in socialnets">
    <a href="{{social.url}}" target="_blank">
       <img src="{{social.img}}" alt="{{social.alt}}" height="50">
       {{social.name}}
     </a>
</div>
对我来说意味着:

<img src="{{social.img}} ...> 

这是否意味着它在angularjs加载范围变量之前触发一次

页面仍然呈现ok。但是消除不必要错误的最佳方法是什么

对我来说没有意义,因为上面的ng repeat是由ng include加载的

<div ng-include="'html/socialbar.html'"></div>

在img标签中使用ng src而不是src

<img ng-src="{{social.img}} ...> 

在img标签中使用ng src而不是src

<img ng-src="{{social.img}} ...> 


@crlshn没问题,事实证明,浏览器尝试使用img标记进行智能化,并尝试立即加载src中的任何内容,因此使用ng src可以使angular中的一些JS能够处理加载图像并在插值完成之前避免初始请求processed@crlshn没问题,事实证明,浏览器尝试使用img标记进行智能化,并尝试立即加载src中的任何内容,因此使用ng src可以使angular中的一些JS能够处理加载图像并在插值处理之前避免初始请求