SyntaxFix
Write A Post
Hire A Developer
Questions
If by "empty" you mean undefined, it is the way ng-expressions are interpreted. Then, you could use :
undefined
<a ng-if="!item.photo" href="#/details/{{item.id}}"><img src="/img.jpg" class="img-responsive"></a>