Goal: Load an image with a dynamic source. If no image is found, then load a placeholder image instead.
This should demonstrate what I\'m trying to
The following approach also works if you want to handle the error in you class:
In your template:
In your class:
onImgError(event) { event.target.src = 'assets/path_to_your_placeholder_image.jpg'; }