angular detect all images not loaded code example
Example: js detect all images errors
window.addEventListener("error", e => {
/* query selector images */
// image element on error => replace source
})
window.addEventListener("error", e => {
/* query selector images */
// image element on error => replace source
})