I have some ng-repeated images.
<img ng-src="{{::data.image}}" /> css:
.thumbnailImage { width: auto; max-width: 20px; height: auto; max-height: 20px; border: 1px solid lightslategrey; position: relative; display: block; margin-left: auto; margin-right: auto; background-color: white; /* in case of png */ } Some of {{data.image}} is null. I want to remove those.
<img ng-src="{{::data.image}}" onerror="this.remove()" /> However when i do this the 1px border i have on the images still remains?
before this i had a ng-if statement (ng-src != null), but i found out that was too expensive in angular watchers.