Hello, I'm using with ionic.
I think I'm doing all right however seems not working.
I'm link the files
<script src="js/ionic.bundle.min.js"></script>
<script src="js/imgcache.js"></script>
<script src="js/angular-imgcache.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
<script src="js/services.js"></script>
In the file app.js I init the imgcache
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ImgCache'])
.run(function($ionicPlatform, ImgCache) {
$ionicPlatform.ready(function() {
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
ImgCache.$init();
});
})
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider, ImgCacheProvider) {
ImgCacheProvider.manualInit = true;
...
});
And in the templates I'm using
<img img-cache ic-src="http://site/{{ PhotoApp) }}" ng-src="http://site/{{ PhotoApp }}" alt="{{ Name }}">
Checking the cache size the images appear cached.
But after a while accessing the app offline the images don't work.
I forgot something?
Hello, I'm using with ionic.
I think I'm doing all right however seems not working.
I'm link the files
In the file
app.jsI init the imgcacheAnd in the templates I'm using
Checking the cache size the images appear cached.
But after a while accessing the app offline the images don't work.
I forgot something?