loadImagesDirective

A directive for loading an image with a fallback source in AngularJS
Homepage:
1 person uses it
Author: 420170?v=3 sketchynix

loadImagesDirective

A simple directive for loading an image with a fallback source in AngularJS. The purpose of the directive is to only show images after they have fully loaded. It will show a placeholder "loading..." while the image is loading. This can be easily changed in the template.

It can be used as an Element or attribute.

Parameters img-src: string - required fallback-src: string - optional

Usage

comments powered by Disqus
This page was last updated about 3 years ago.