Check out this example for handling image loading events:
In your HTML file:
<img [src]="imagesource" (load)="doSomething()">
<!--(or)-->
<img src="https://i.pinimg.com/736x/2c/9d/07/2c9d0704ae49dfde914e2b477bf9279c--stick-figure-profile-pictures.jpg" (load)="doSomething()">
In your Typescript file:
imagesource="https://i.pinimg.com/736x/2c/9d/07/2c9d0704ae49dfde914e2b477bf9279c--stick-figure-profile-pictures.jpg";
doSomething(){
console.log("Loaded");
//perform additional actions here
}
If you want to learn more about detecting when an image has loaded in an img tag, visit the following link:
Detect when image has loaded in img tag