If image has 'loaded' class, i need to change image src to "{{item.preview2}}"
<div ng-repeat="item in items">
<img src="{{item.preview}}" class="grid-img" />
</div>
If image has 'loaded' class, i need to change image src to "{{item.preview2}}"
<div ng-repeat="item in items">
<img src="{{item.preview}}" class="grid-img" />
</div>
In the case you describe I would just use ng-if to control what elements are rendered to the DOM. for example:
Hope this helps.
and in html