From 8e9638dccf57d9a37cf95fb4a3291a1e6d37f83d Mon Sep 17 00:00:00 2001 From: Brian Feister Date: Thu, 23 Oct 2014 14:53:40 -0400 Subject: [PATCH] Explain `setStorageCookieDomain` limitation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae27b93..f63bf8a 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ myApp.config(function (localStorageServiceProvider) { }); ``` ###setStorageCookieDomain -Set for cookie domain
+Set the cookie domain, since this runs inside a the `config()` block, only providers and constants can be injected. As a result, `$location` service can't be used here, use a hardcoded string or `window.location`.
**No default value** ```js myApp.config(function (localStorageServiceProvider) {