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
Update storage
angular
.module('demo', [
'ngImageCache'
])
.config(['ImageCacheProvider', function(ImageCacheProvider) {
// Use localStorage instead of sessionStorage
ImageCacheProvider.setStorage(window.localStorage)
}])
;