title: Angular Ionic Cordova - Default Image Source Directive
body: <p>Using some combination of Angular / Ionic / Cordova how can I dynamically set the image source to default if request image doesn't exist.  NOTE: I know this can be done with an OnError directive, however this results in a temporary question mark image which I would like to avoid. Perhaps making a Cordova File call?</p>
  
  <pre><code>&lt;img ng-src="{{employee.id}}.jpg" df-img-src="default.jpg"/&gt;
  </code></pre>
  
  <p>Taking things one step further, what about dealing with unknown file extensions. Say if the employee picture can end in either gif, png, jpg, or jpeg, and I would want to set the image-src to which ever one exists on the file system.</p>