Changed constant to value

Changing angularLocalStorage.constant('prefix', 'ls') to angularLocalStorage.value('prefix', 'ls'). Now, this prefix can be overwritten by the consuming app.
dev
Nachiket Mehta 11 years ago
parent bd5bc4a4ae
commit 25209ce489

@ -4,7 +4,7 @@ var angularLocalStorage = angular.module('LocalStorageModule', []);
// You should set a prefix to avoid overwriting any local storage variables from the rest of your app
// e.g. angularLocalStorage.constant('prefix', 'youAppName');
angularLocalStorage.constant('prefix', 'ls');
angularLocalStorage.value('prefix', 'ls');
// Cookie options (usually in case of fallback)
// expiry = Number of days before cookies expire // 0 = Does not expire
// path = The web path the cookie represents