Question: I have this ion-img tag

```html
<ion-avatar [ngClass]="cssClass">
  <ion-img
  [src]="avatar"
  (ionError)="failedImageLoad($event)"></ion-img>
</ion-avatar>

```

And i need to send an error event when the image failed to load, this `(ionError)` event is in the documentation of the ion-img tag, but it doenst work, and the other events handler are working fine, someone knows any other event handler for error ?

Answer: 
**My solution for image load error**

```
<img class="avatar" [src]="merchant.logo_url" (error)="errorImage(img)" #img />

  errorImage(img) {

    img.src = '../../../../../../assets/svg-icons/022-menu.svg'
  }

```
Simple solution.
================

ionError : solution
-------------------

```
fallbackUrl = 'assets/img/fallback-image.png';
<ion-img  [src]="user.userMg" (ionError)="user.userMg = fallbackUrl"></ion-img>

```