gauravgango / gaurav-angular-indexeddb

An indexedDB wrapper for Angular JS.
http://gauravgango.github.io/gaurav-angular-indexeddb/
MIT License
9 stars 1 forks source link

while I call indexeddb service ,got a exception typeError: e is not a function #18

Closed jimmyyao88 closed 8 years ago

jimmyyao88 commented 8 years ago

mycode:

angular.module('app',['indexed-db'])
.config(function(indexeddbProvider){
              indexeddbProvider.setDbName('test'); // your database name
        indexeddbProvider.setDbVersion(1); // your database version

            var tables = [{
               name : 'users',
               fields : [
                    {
                        name : '_id', //setting the name of keyPath
                    keyPath : true //setting this field as keyPath  
                    },
                    {
                       name : 'email' //adding an index 
                    }
                ]
           }];

         indexeddbProvider.setDbTables(tables);
    })
.controller
('myCtrl',function($scope,indexeddb){
});

while I call indexeddb service ,got a exception typeError: e is not a function. if I remove the service indexeddb ,the error disappeared.

maxgaurav commented 8 years ago

Looking into it.

maxgaurav commented 8 years ago

Sorry was not able to reproduce the error. Could you tell me which file you used (the dist, src or installed from bower).

jimmyyao88 commented 8 years ago

@maxgaurav HI,max,appericate your reply very much.I didn't install from bower ,just download the zip file ,and add the dependency :angular-indexeddb.min.js which located in 'dist' directory .

jimmyyao88 commented 8 years ago

Could u add an example code,after googling,I only find the docs ,although It's anawesome library :- )

gauravgango commented 8 years ago

I was working on examples but some other priorities made me to stop working on this project. I will be shortly updating the repo with some fine examples.

jimmyyao88 commented 8 years ago

Anyway,I want to thank you for the great module , IndexedDB will be future