<img [src]="invalidPath" onError="this.src='images/angular.png'"/>. This way you can directly assign img path to src with onError event.
確定! 回上一頁