ng-image-cache

WebJar for ng-image-cache

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

ng-image-cache
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

ng-image-cache
WebJar for ng-image-cache
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/ghoullier/ng-image-cache

Download ng-image-cache

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/ng-image-cache/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>ng-image-cache</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/ng-image-cache/
implementation 'org.webjars.bower:ng-image-cache:0.3.0'
// https://jarcasting.com/artifacts/org.webjars.bower/ng-image-cache/
implementation ("org.webjars.bower:ng-image-cache:0.3.0")
'org.webjars.bower:ng-image-cache:jar:0.3.0'
<dependency org="org.webjars.bower" name="ng-image-cache" rev="0.3.0">
  <artifact name="ng-image-cache" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='ng-image-cache', version='0.3.0')
)
libraryDependencies += "org.webjars.bower" % "ng-image-cache" % "0.3.0"
[org.webjars.bower/ng-image-cache "0.3.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Angular image cache module

GETTING STARTED

angular
  .module('demo', [
    'ngImageCache'
  ])
;
<ui-image ui-src="'http://localhost/images/test.png'" ui-title="'Test'"></ui-image>

Image is loaded using javascript, content is stored in DOMStorage (sessionStorage or localStorage) for next loading

CONFIGURE

Update storage

angular
  .module('demo', [
    'ngImageCache'
  ])
  .config(['ImageCacheProvider', function(ImageCacheProvider) {
    // Use localStorage instead of sessionStorage
    ImageCacheProvider.setStorage(window.localStorage)
  }])
;

CHANGELOG

Versions

Version
0.3.0