angular-imgcache.js
angular-imgcache.js copied to clipboard
Directives not working
ImgCache.$promise.then(function() { +
-
ImgCache.isCached(src, function(path, success) {
Code is not reaching this section
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}}" />
and make sure (if you are testing in chrome) you have to confirm that the website is allowed to write in storage.