ionic-img-cache.js
function get(src) {
      var defer = $q.defer();

      _checkImgCacheReady()
        .then(function() {
          ImgCache.isCached(src, function(path, success) {
            if (success) {
              defer.resolve(path);
            } else {
              defer.reject();
            }
          }, defer.reject);
        })
        .catch(defer.reject);

      return defer.promise;
    }
function get(src) {
      var defer = $q.defer();

      _checkImgCacheReady()
        .then(function() {
          ImgCache.isCached(src, function(path, success) {
            if (success) {
              defer.resolve(path);
            } else {
              defer.reject();
            }
          }, defer.reject);
        })
        .catch(defer.reject);

      return defer.promise;
    }
function get ( src ) { var defer = $q . defer ( ) ; _checkImgCacheReady ( ) . then ( function ( ) { ImgCache . isCached ( src , function ( path , success ) { if ( success ) { defer . resolve ( path ) ; } else { defer . reject ( ) ; } } , defer . reject ) ; } ) . catch ( defer . reject ) ; return defer . promise ; }
Gets file local url if it present in cache.
@param {string} src - image source url.
Gets file local url if it present in cache .