From a6b1a7eadce89ccc6c9687ff6bc8469b10e949e1 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 2 Dec 2014 16:02:34 -0500 Subject: [PATCH 1/2] fix location#hash example. The given example does not actually work in the browser. location.hash() only returs the value after a slash and a second hash. --- src/ng/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/location.js b/src/ng/location.js index 4338bc0af03d..a0ab8e775264 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -555,7 +555,7 @@ var locationPrototype = { * * * ```js - * // given url http://example.com/some/path?foo=bar&baz=xoxo#hashValue + * // given url http://example.com/some/path?foo=bar&baz=xoxo#/#hashValue * var hash = $location.hash(); * // => "hashValue" * ``` From abf3d0d4f5676cae31221bb91f9e96f09c69b1b1 Mon Sep 17 00:00:00 2001 From: whayler1 Date: Wed, 3 Dec 2014 14:50:17 -0500 Subject: [PATCH 2/2] update location hash example --- src/ng/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/location.js b/src/ng/location.js index a0ab8e775264..99474ee7f2b7 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -555,7 +555,7 @@ var locationPrototype = { * * * ```js - * // given url http://example.com/some/path?foo=bar&baz=xoxo#/#hashValue + * // given url http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue * var hash = $location.hash(); * // => "hashValue" * ```