https://github.com/ghoullier/ng-image-cache
Angular image cache module
https://github.com/ghoullier/ng-image-cache
angular cache image-cache
Last synced: 12 months ago
JSON representation
Angular image cache module
- Host: GitHub
- URL: https://github.com/ghoullier/ng-image-cache
- Owner: ghoullier
- License: mit
- Created: 2015-03-01T15:19:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-17T08:04:47.000Z (about 9 years ago)
- Last Synced: 2025-03-25T07:36:05.370Z (about 1 year ago)
- Topics: angular, cache, image-cache
- Language: JavaScript
- Size: 45.9 KB
- Stars: 5
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular image cache module
## GETTING STARTED
```js
angular
.module('demo', [
'ngImageCache'
])
;
```
```html
```
Image is loaded using javascript, content is stored in DOMStorage (sessionStorage or localStorage) for next loading
## CONFIGURE
Update storage
```js
angular
.module('demo', [
'ngImageCache'
])
.config(['ImageCacheProvider', function(ImageCacheProvider) {
// Use localStorage instead of sessionStorage
ImageCacheProvider.setStorage(window.localStorage)
}])
;
```
## [CHANGELOG](CHANGELOG.md)