sm-angular-storage

Angular storage service. Stores stringified data in the browsers localStorage.


Keywords
angular, angularjs, localstorage, storage
License
MIT
Install
bower install sm-angular-storage

Documentation

#Angular Storage

Angular storage service. Stores stringified data in the browsers localStorage.

##Installation

Install using bower by adding to bower.json or installing manually.

bower install sm-angular-storage

##Usage

Add sm.storage.js to your application and include sm.storage as a module dependency.

angular.module('app', ['sm.storage']);

Within your controller, include storage as a dependency. You can then use the following to store a key.

storage.storeEntry(key, value);

You can use the following to retreive a key.

storage.getEntry(key);

You can use the following to remove a key.

storage.removeEntry(key);

##To Do

  • Add test coverage.