bramski / angular-indexedDB

An angularjs serviceprovider to utilize indexedDB with angular
165 stars 49 forks source link

Maybe it' s issue... :) #49

Closed sutija closed 8 years ago

sutija commented 9 years ago

At first,

I want to thank you for great module! You saved my time & life. ;)

I found this little bug:

$indexedDB.openStore('articles', function (store) {
            var find = store.query();
            find = find.$eq($routeParams.id);
            find = find.$index("category_id_idx");
            store.eachWhere(find).then(function (e) {
                console.log('found', e);
                $scope.articles = e;
            }, function () {
                console.log('not found');
            });
        });

This doesn't work, you have to:

parseInt($routeParams.id) 

to make it work... If you could place this in to manual.

Thanks!

bramski commented 9 years ago

No problem. This is not really a bug. Had your id parameter been a string you would have had no problem. On Oct 19, 2015 11:31 PM, "sutija" notifications@github.com wrote:

At first,

I want to thank you for great module! You saved my time & life. ;)

I found this little bug:

$indexedDB.openStore('articles', function (store) { var find = store.query(); find = find.$eq($routeParams.id); find = find.$index("categorie_id_idx"); store.eachWhere(find).then(function (e) { console.log('found', e); $scope.articles = e; }, function () { console.log('not found'); }); });

This doesn't work, you have to parseInt($routeParams.id) to make it work... So if you could place this in to manual.

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/bramski/angular-indexedDB/issues/49.