ionic-image-loader icon indicating copy to clipboard operation
ionic-image-loader copied to clipboard

Feature Request: state of image (loading, loaded, failed).

Open iowaz opened this issue 7 years ago • 0 comments

Is there a existing way to check the state of a specific image/uri/url?

Use example:

<img-loader src="https://path.to/my/image.jpg"></img-loader>
<div *ngIf="!imageLoaded('https://path.to/my/image.jpg')"><!-- any action here until image has been loaded --></div>

And in controller:

imageLoaded(image_url) {
   if(this.lazyImageCtrl.state(image_url) === "loaded")
    return true;
  else
   return false;
}

Thanks!

iowaz avatar Jun 08 '17 18:06 iowaz