I have the following button directive :
<button-data></button-data>
the button data directive template is:
<div class="buttonDiv">
<a ng-show="!isSomthing" class="{{className}}" >
</a>
</div>
in another place , I have a canvas (some plugin) that show an image
When clicking on the button I would like to check if the image response is 404 or other broken status and disable the button in that case(event just return in the "link" directive function without doing anything)
- I have the image link in the scope of the button directive
Hos could I do that?
thanks