diff options
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 24 | ||||
| -rw-r--r-- | docs/src/templates/docs.css | 11 |
2 files changed, 14 insertions, 21 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 diff --git a/docs/src/templates/docs.css b/docs/src/templates/docs.css index 7f1cea8e..d42ec093 100644 --- a/docs/src/templates/docs.css +++ b/docs/src/templates/docs.css @@ -467,17 +467,6 @@ td.empty-corner-lt { } /* service.$location Html5 mode example */ -.html5-hashbang-example { - height: 255px; - margin-left: -40px; - padding-left: 30px; -} - -.html5-hashbang-example div { - float: left; - width: 375px; -} - .html5-hashbang-example div input { width: 360px; } |
