I have an image tag :
<img src="{!v.ticketDetails.url}" alt="Image not found" onerror="this.style.display='none'"/>
If image is not found, it shows broken Image icon on chrome. However this works with plain HTML but not working in lightning component.
HTML Code:
<html>
<head>
</head>
<body>
<img src="images.jpeg" onerror=" this.style.display='none'">
</body>
</html>
How can I achieve same functionality in lightning component?