Image Loader Plugin for AngularJS
bower install -S angular-image-loader
- Insert
<script src="/path/to/your/angular-image-loader.js"></script>
after angular.js
- Add
tomNgImgLoader
as your module dependency - Inject
tomNgImgLoader
as a service and use it like this:
tomNgImgLoader([
'/images/img1.jpg',
'/images/img2.jpg',
'/images/img3.jpg'
], function () {
// do something
}, callbackContext);