I use ng-src
to load images. Value is loaded from some scope variable, like this:
<img ng-src="{{currentReceipt.image}}"/>
My issue is that when I run delete $scope.currentReceipt
, it makes ng-src
attribute empty but doesn't reflect it in src
attribute. So as a result I keep seeing that image where I need empty placeholder.
How can I deal with it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…