RevillWeb / angular-preload-image

A simple AngularJS module to make it easy to pre-load images.
MIT License
70 stars 29 forks source link

Observe ngSrc & preloadBgImage for dynamic image changing #6

Closed MoatazAbdallh closed 8 years ago

MoatazAbdallh commented 8 years ago

This change let you to observe ngSrc & preloadBgImage for dynamic attr interpolation.

ex:

<img preload-image ng-src="{{vm.imgUrl}}.png"
default-image="assets/images/placeholder.png" fallback-image="[URL]" />
MoatazAbdallh commented 8 years ago

You could use the following project as it's edited and registered in bower mo3taz-abdallh/angular-dynamic-preload-image Regards