the simplest localStorage implementation, ever

angular localStorage module

How to use localStorage module

Variable: {{test}}

Clear Value from LC

Change the value in the textbox and refresh the page!

var eS = angular.module('exampleStore', ['angularLocalStorage']);

eS.controller('MainCtrl', ['$scope', 'storage', function ( $scope, storage ) {
    storage.bind($scope, 'test', 'Some Default Text');

    $scope.clearTest = function () {
        storage.remove('test');
    };
}]);