Options
All
  • Public
  • Public/Protected
  • All
Menu

This directive transforms the path of an image with another if it is not found.
Usage : <img src="this.image.is.not" alt="description" [default]="YOUR/NEW/IMAGE" >

attribute

default (String) Path of another image.

returns

Returns an another image defined in attribute "default", if image is not found.

author

sophielongo sophielongo

version

0.0.1

Hierarchy

  • DefaultImageDirective

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

default

default: string

element

element: HTMLElement

Private elementRef

elementRef: ElementRef

stopError

stopError: boolean

Methods

onError

  • onError(): void

Private updateUrl

  • updateUrl(): void

Generated using TypeDoc