webStorage

angular module for simply save data (single values, object, array) into browser local storage for web and mobile app.
Homepage:
1 person uses it
Submitted by: 13559278?v=3 ilvalerione

webStorage

Angular module for simply save data (single values, object, array) into browser local storage for web and mobile app.

Local storage allow to store only string data type. This module allow you to store JSON objects and Array also using serialization. You can store any type of structured data with a single method.

Using prefix

You can set prefix that will be added before each variable name to distinguish same variable name between more apps.

You can perform this task using Provider in Angular config method. In this way you are sure that your namespace is configured when app start.

Add prefix is similar to create a "namespace" for your app. If you set prefix, all subsequent operation (get, set, remove) will take effect on local storage params created under this prefix namespace. Into more apps you can use the same local storage params names but with different prefix they do not overwrite.

comments powered by Disqus
This page was last updated over 1 year ago.