I'm trying to display a series of image on the screen but hide or not show the one with a specific image name, but so some reason it is either hiding all images or showing just one.
Here is my code, any help is appreciated.
<div ng-repeat="x in documents" ng-if="x.document_name=='leftover.png'" ng-show="not_admin">
<img src="{{ x.image }}" width="30" height="30">
<p><b>{{ x.document_name }}</b></p>
</div>
I want to hide just one div if the image is 'leftover.png' and not_admin is true which is already set to true in my controller.
Update
I should have been a lot clearer, what I want is to show all the images if the user is an admin, but hide just the 'leftover.png' otherwise.
So, if the logged in user is not an admin, they can see all the images except 'leftover.png', but when an admin logs in they can see all the images.
I hope this makes more sense.