From 25209ce489f0e5688171bee2e409290caff28ecf Mon Sep 17 00:00:00 2001 From: Nachiket Mehta Date: Tue, 2 Jul 2013 10:23:20 -0500 Subject: [PATCH] Changed constant to value Changing angularLocalStorage.constant('prefix', 'ls') to angularLocalStorage.value('prefix', 'ls'). Now, this prefix can be overwritten by the consuming app. --- localStorageModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localStorageModule.js b/localStorageModule.js index 01584ea..5299169 100644 --- a/localStorageModule.js +++ b/localStorageModule.js @@ -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