angular-html5-storage

angular-html5-storage

HTML5 web storage for Angular.js (ngHTML5Storage)

Install

Usage

create your service wrapper (optional)

using ngHTML5Storage directly (without a service wrapper)

Methods of ngHTML5Storage

  • .local(key, value) - set a value by key in localStorage
  • .session(key, value) - set a value by key in sessionStorage
  • .local(key) - get a value by key in localStorage
  • .session(key) - get a value by key in sessionStoragedd
  • .remove.local(key) - remove by key from localStorage
  • .remove.session(key) - remove by key from sessionStorage

Run tests

MIT License

comments powered by Disqus
This page was last updated almost 3 years ago.