You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
I have some code where i would only like to show an image object if it is a valid file type, so i have something like:
<img ng-show='isFileAnImage(FileName)===true' alt='{{dataItem.FileName}}' ng-src='"{{ FileURL }}' />
which works great (img is only showing if it passes my validation). But looking through the network traffic, the page is still trying to call the image src URL, even when not valid. I've tried wrapping the img in a div, and putting the ng-show there instead, but no luck. Is there a way to avoid the call to ng-src if ng-show is false?
The text was updated successfully, but these errors were encountered:
I have some code where i would only like to show an image object if it is a valid file type, so i have something like:
<img ng-show='isFileAnImage(FileName)===true' alt='{{dataItem.FileName}}' ng-src='"{{ FileURL }}' />
which works great (img is only showing if it passes my validation). But looking through the network traffic, the page is still trying to call the image src URL, even when not valid. I've tried wrapping the img in a div, and putting the ng-show there instead, but no luck. Is there a way to avoid the call to ng-src if ng-show is false?
The text was updated successfully, but these errors were encountered: