code: function link(scope, element, attrs) {
        attrs.$observe('ngSrc', function(src) {
          ionImgCacheSrv.checkCacheStatus(src)
            .then(function() {
              ImgCache.useCachedFile(element);
            });
        });
      }
docs: /* ngInject