I'm actually working on Angular and I want to know if there is a way to know if an image has been loaded correctly in the dom. I trie using this.image.nativeElement.width
but the width is sent before the image loading.
HTML
<img #image [src]="imagePath">
TS
@ViewChild('image', {static: true})
image: ElementRef<HTMLImageElement>;