I'm new to AJS so this maybe sound silly but i want to know how to avoid broken image when the image URL coming from an expression or from user input. maybe this explains :
<html ng-app>
<head>
</head>
<body>
Name :<input type="text" ng-model="batman" />
<img ng-src="{{batman}}.png" />
<script src="script/angular.min.js"></script>
</body>
</html>
now i have few pics in that folder and i want when i type it in text bar they appears on the page. but we always have this broken image showing until we didn't type the exact image name. so is there any way to avoid the broken image to show up. thanks