Store "scope value" in localstorage?

“lokijs” Is it also a database ?

Yes. Lokijs IS an in memory database. The documentation is quite sparse. But, the syntax to query it is very very similar to mongodb. Its a NoSQL db though.

1 Like

@kiongkiong Thanks for suggesting LokiJS, I hadn’t heard about it before.

What do you use for persisting the data? I thought IndexedDB would be OK, but it turns out that it doesn’t work on iOS. I ended up storing the data as a JSON file.

If anyone is thinking about using LokiJS, check out my tutorial: http://gonehybrid.com/how-to-use-lokijs-for-local-storage-in-your-ionic-app/