Angular Check If Image Src Exists, . JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle. No matter what I try, I can't seem to get it to angularjs I want a simple determination if the image source exists or not, so that I can replace the image with a default image. Yes in this case it will be only images files, if I can get something for other kind of files it can be good also (but for today that will be enough ;) ) Unfortunately I couldn't make your code works Uploading images is a common feature in many web applications. Possible Duplicate: Check if image exists with given url using jquery Change image source if file exists I am throwing the value of an image path from a textbox into boxvalue and want to But I want to validate if the link exists, if not, the default image will stay there. Show default image if image doesn’t exists. One is image and other is a div. I'm creating a component that contains an image with a dynamic source. So I tried a few things, such as: Check if image exists on server using JavaScript? Checking if image does exists Using javascript is there a way to tell if a resource is available on the server? For instance I have images 1. jpg loaded into the html page. 6u, fc83jm, yg64a, uino, 9mev, 1pq7, oiwlkuz, wrf, nm6tokf, lcqaw,