angular localstorage | plug-n-play for html5 local storage API

angular Localstorage


Stars : 10

Forks : 10

Created by Gregory Pike

bower install angular-local-storage

Demo Download GitHub

Example Code :-

var YourCtrl = function($scope, localStorageService, ...) {
// To add to local storage
localStorageService.add('localStorageKey','Add this!');
// Read that value back
var value = localStorageService.get('localStorageKey');
// You can also play with cookies the same way
localStorageService.cookie.add('localStorageKey','I am a cookie value now');


Javascript plugin


Leave a Reply