Is it possible to surpress img not found log message from html image tag in Angular 5.
I try to do:
<img [src]="default_url+'_'+id+'.png'" [alt]="default_url+'dummy.svg'" onerror="this.src=this.alt;return null;">
So showing the user image by id and if there is no image i would like to replace it with the dummy.svg.
This is working but delivers error (404 if dummy replace the main image) on console log. Which I would like to surpress.
Thanks!