From 171feb8fc6e2b845582ae301980892a169805abd Mon Sep 17 00:00:00 2001
From: Freek Wielstra
Date: Tue, 1 Oct 2013 13:17:26 +0200
Subject: docs(guide/$location): replace host.com addresses with example.com
The host.com links on this documentation page took you to an ad page of dubious content.
Now changed to example.com, in accordance with RFC 2606
Closes #4206
---
.../guide/dev_guide.services.$location.ngdoc | 38 +++++++++++-----------
1 file changed, 19 insertions(+), 19 deletions(-)
(limited to 'docs/content/guide/dev_guide.services.$location.ngdoc')
diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc
index 6548c68f..2fb1adb4 100644
--- a/docs/content/guide/dev_guide.services.$location.ngdoc
+++ b/docs/content/guide/dev_guide.services.$location.ngdoc
@@ -217,19 +217,19 @@ it('should show example', inject(
$locationProvider.hashPrefix('!');
},
function($location) {
- // open http://host.com/base/index.html#!/a
- $location.absUrl() == 'http://host.com/base/index.html#!/a'
+ // open http://example.com/base/index.html#!/a
+ $location.absUrl() == 'http://example.com/base/index.html#!/a'
$location.path() == '/a'
$location.path('/foo')
- $location.absUrl() == 'http://host.com/base/index.html#!/foo'
+ $location.absUrl() == 'http://example.com/base/index.html#!/foo'
$location.search() == {}
$location.search({a: 'b', c: true});
- $location.absUrl() == 'http://host.com/base/index.html#!/foo?a=b&c'
+ $location.absUrl() == 'http://example.com/base/index.html#!/foo?a=b&c'
$location.path('/new').search('x=y');
- $location.absUrl() == 'http://host.com/base/index.html#!/new?x=y'
+ $location.absUrl() == 'http://example.com/base/index.html#!/new?x=y'
}
));
@@ -267,31 +267,31 @@ it('should show example', inject(
},
function($location) {
// in browser with HTML5 history support:
- // open http://host.com/#!/a -> rewrite to http://host.com/a
- // (replacing the http://host.com/#!/a history record)
+ // open http://example.com/#!/a -> rewrite to http://example.com/a
+ // (replacing the http://example.com/#!/a history record)
$location.path() == '/a'
$location.path('/foo');
- $location.absUrl() == 'http://host.com/foo'
+ $location.absUrl() == 'http://example.com/foo'
$location.search() == {}
$location.search({a: 'b', c: true});
- $location.absUrl() == 'http://host.com/foo?a=b&c'
+ $location.absUrl() == 'http://example.com/foo?a=b&c'
$location.path('/new').search('x=y');
$location.url() == 'new?x=y'
- $location.absUrl() == 'http://host.com/new?x=y'
+ $location.absUrl() == 'http://example.com/new?x=y'
// in browser without html5 history support:
- // open http://host.com/new?x=y -> redirect to http://host.com/#!/new?x=y
- // (again replacing the http://host.com/new?x=y history item)
+ // open http://example.com/new?x=y -> redirect to http://example.com/#!/new?x=y
+ // (again replacing the http://example.com/new?x=y history item)
$location.path() == '/new'
$location.search() == {x: 'y'}
$location.path('/foo/bar');
$location.path() == '/foo/bar'
$location.url() == '/foo/bar?x=y'
- $location.absUrl() == 'http://host.com/#!/foo/bar?x=y'
+ $location.absUrl() == 'http://example.com/#!/foo/bar?x=y'
}
));
@@ -391,8 +391,8 @@ In this examples we use ``
$location.path() = {{$location.path()}}
$location.search() = {{$location.search()}}
$location.hash() = {{$location.hash()}}
- /base/first?a=b |
- sec/ond?flag#hash |
+ /base/first?a=b |
+ sec/ond?flag#hash |
external
@@ -405,8 +405,8 @@ In this examples we use ``
$location.path() = {{$location.path()}}
$location.search() = {{$location.search()}}
$location.hash() = {{$location.hash()}}
- /base/first?a=b |
- sec/ond?flag#hash |
+ /base/first?a=b |
+ sec/ond?flag#hash |
external
@@ -433,8 +433,8 @@ In this examples we use ``
}
var browsers = {
- html5: new FakeBrowser('http://www.host.com/base/path?a=b#h', '/base/index.html'),
- hashbang: new FakeBrowser('http://www.host.com/base/index.html#!/path?a=b#h', '/base/index.html')
+ html5: new FakeBrowser('http://www.example.com/base/path?a=b#h', '/base/index.html'),
+ hashbang: new FakeBrowser('http://www.example.com/base/index.html#!/path?a=b#h', '/base/index.html')
};
function Html5Cntl($scope, $location) {
--
cgit v1.2.3