Search code examples
angularjsdata-storage

Which local storage option is the closest to using a database


As I'm writing my first AngularJS app, I'm faced with a requirement to create a data entry functionality, which will work in offline mode. At this point, local storage is more of a general description (to me) rather then a specific way of handling things. My question is: what is a solid technique/method/api of storing many related records on the browser storage, which would feel the closets to interacting with a database?


Solution

  • After looking around, it appears, that using indexed is the best option. I found these (top 2 items) ready examples of how to do this with angular:
    https://github.com/search?q=angular+indexeddb&ref=cmdform