Skip to content

It's not working #6

Description

@tiagoporto

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions