I have a directive for images, where if an image does not load I display a default image.
Policy:
import { Directive, Input, HostBinding } from '@angular/core';
@Directive({
selector: 'img[default]',
host: {
'(error)':'updateUrl(...
asked by
04.07.2018 / 16:51