diff options
| author | Vojta Jina | 2011-11-11 17:08:25 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-11-13 16:40:31 -0800 |
| commit | 5e663c3dc7aa2908b3396ec41426572a2a105a3c (patch) | |
| tree | 5ba4114459ecfd735169ecb08f3595afadfe4169 /docs/content/guide | |
| parent | 260725efcd15e960941af6bc1f468e3fb1ac45c5 (diff) | |
| download | angular.js-5e663c3dc7aa2908b3396ec41426572a2a105a3c.tar.bz2 | |
fix(docs.guide): fix $location example
Diffstat (limited to 'docs/content/guide')
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index 5bce8b0c..51747516 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -369,8 +369,10 @@ redirect to regular / hashbang url, as this conversion happens only during parsi In this examples we use `<base href="/base/index.html" />` -<ul class="doc-example"> -<li ng:non-bindable class="html5-hashbang-example"> +<doc:example> +<doc:source source="false"> + +<div ng:non-bindable class="html5-hashbang-example"> <div id="html5-mode" ng:controller="Html5Cntl"> <h3>Browser with History API</h3> <ng:address-bar browser="html5"></ng:address-bar><br /><br /> @@ -380,9 +382,9 @@ In this examples we use `<base href="/base/index.html" />` $location.path() = {{$location.path()}}<br /> $location.search() = {{$location.search()}}<br /> $location.hash() = {{$location.hash()}}<br /> - <a href="/base/first?a=b">/base/first?a=b</a> | <a -href="sec/ond?flag#hash">sec/ond?flag#hash</a> | <a href="/base/another?search" -ng:ext-link>external</a> + <a href="/base/first?a=b">/base/first?a=b</a> | + <a href="sec/ond?flag#hash">sec/ond?flag#hash</a> | + <a href="/base/another?search" ng:ext-link>external</a> </div> <div id="hashbang-mode" ng:controller="HashbangCntl"> @@ -394,12 +396,11 @@ ng:ext-link>external</a> $location.path() = {{$location.path()}}<br /> $location.search() = {{$location.search()}}<br /> $location.hash() = {{$location.hash()}}<br /> - <a href="/base/first?a=b">/base/first?a=b</a> | <a -href="sec/ond?flag#hash">sec/ond?flag#hash</a> | <a href="/base/another?search" -ng:ext-link>external</a> + <a href="/base/first?a=b">/base/first?a=b</a> | + <a href="sec/ond?flag#hash">sec/ond?flag#hash</a> | + <a href="/base/another?search" ng:ext-link>external</a> </div> -</li> -</ul> +</div> <script type="text/javascript"> function FakeBrowser(initUrl, baseHref) { @@ -481,6 +482,9 @@ ng:ext-link>external</a> initEnv('hashbang'); </script> +</doc:source> +</doc:example> + # Caveats |
