javascript - Insert in loki js not working -


i'm working on ionic project need store data locally , i'm using loki js, created factory using loki js , initializing , i'm creating database , while inserting not working. according documentation https://rawgit.com/techfort/lokijs/master/jsdoc/collection.html can insert object or array.

but either of them not passing values loki db created.

how solve this?

a sample code useful if can't insert object (and you're loading db existing file) sounds if you're trying access collection outside loaddatabase callback. lokijs supports bulk inserts passing array of objects.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -