Set placeholder image path(if there is), then fetch image using $http
service, set image path again when http response success.
-
install from bower
bower install img-http-src --save
-
include module
imgHttpSrc
-
directive usage in html
$http
<img http-src="imgPath" placeholder="phPath" alt="img">
dataUrl
<img dataurl-src="imgPath" placeholder="phPath" alt="img">