Right now, the directive assumes the element is an <img>, but doesn't check. We check for this.
In addition, when the element is not an <img>, phImg should set the placeholder as the element's CSS background-image, so it can be used on any type of element.
Right now, the directive assumes the element is an
<img>
, but doesn't check. We check for this.In addition, when the element is not an
<img>
, phImg should set the placeholder as the element's CSSbackground-image
, so it can be used on any type of element.