ionic-image-loader
ionic-image-loader copied to clipboard
Feature Request: state of image (loading, loaded, failed).
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!