Angular jStore
The angular-jstore
module provides a convenient wrapper for to storing JSON objects in the client browser with HTML5 localStorage.
And now it has Broadcast Channel support for sending data between different browser tabs.
For testing see pages demo1 and demo2.
Install with package managers
via bower:
$ bower install angular-jstore --save
via npm:
$ npm install angular-jstore --save
How to use angular jstore
- Add
angular.min.js
andangular-jstore.min.js
(from the dist directory) to your code:
- Add a dependency to the
angular-jstore
module in your application.
var app = angular;
- Setting a prefix for the session name (OPTIONAL)
// Jstore Providerapp;
- To test see the example below:
app;
Broadcast Channel Support
Tested in Chrome and Firefox.
Console Output
License
Released under the terms of MIT License.
See MIT license