joshdmiller / angular-placeholders

A set of placeholder directives & services for use during development of AngularJS apps.
joshdmiller.github.com/angular-placeholders
GNU Lesser General Public License v3.0
202 stars 39 forks source link

img: Support non-img tags #5

Closed joshdmiller closed 11 years ago

joshdmiller commented 11 years ago

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.