angular-imgcache.js icon indicating copy to clipboard operation
angular-imgcache.js copied to clipboard

Directives not working

Open maaizelahi opened this issue 11 years ago • 2 comments

ImgCache.$promise.then(function() { +

  •                ImgCache.isCached(src, function(path, success) {
    

Code is not reaching this section

maaizelahi avatar Oct 28 '14 17:10 maaizelahi

Make sure that you insert the directive name in the elements to activate the methods. That made the difference for me.

Example:

<img img-cache ic-src="{{image}}" />

Wouter33 avatar Jan 29 '15 09:01 Wouter33

and make sure (if you are testing in chrome) you have to confirm that the website is allowed to write in storage.

KillerCodeMonkey avatar Feb 09 '15 13:02 KillerCodeMonkey