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'); }; }]);