aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.html
diff options
context:
space:
mode:
authorMisko Hevery2010-11-04 14:24:31 -0700
committerMisko Hevery2010-11-04 14:24:31 -0700
commit47066e70e1621ff74bd2cd6b5853ca3c5841aba6 (patch)
tree5a653300650aad0a4f1d8a88c0998edc7ebfe1fe /docs/index.html
parentc0d30aedfca89fee2e1fc3b0b2fc1e7bfcb008b1 (diff)
downloadangular.js-47066e70e1621ff74bd2cd6b5853ca3c5841aba6.tar.bz2
added documentation for ng:include and ng:widget and test for doc collector.
Diffstat (limited to 'docs/index.html')
-rw-r--r--docs/index.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/docs/index.html b/docs/index.html
index f61893a4..a2cad87e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -6,19 +6,29 @@
<script type="text/javascript" src="../angular.min.js" ng:autobind></script>
<script type="text/javascript" src="http://angularjs.org/extensions/wiki_widgets.js"></script>
<link rel="stylesheet" href="http://angularjs.org/extensions/wiki_widgets.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ function DocsController() {
+ this.docs = NG_DOC;
+ window.$root = this.$root;
+
+ this.getUrl = function(page){
+ return '#' + encodeURIComponent(page.name);
+ }
+ }
+ </script>
</head>
-<body ng:init="docs=$window.NG_DOC; $window.$root = $root">
+<body ng:controller="DocsController">
<table>
<tr>
<td valign="top">
<div ng:repeat="(name, type) in docs.section">
<b>{{name}}</b>
<div ng:repeat="page in type">
- <a href="#{{page.name}}"><tt>{{page.shortName}}</tt></a>
+ <a href="{{getUrl(page)}}"><tt>{{page.shortName}}</tt></a>
</div>
</div>
</td>
- <td valign="top"><ng:include src="$location.hashPath + '.html' "></ng:include></td>
+ <td valign="top"><ng:include src=" './' + $location.hashPath + '.html' "></ng:include></td>
</tr>
</table>
</body>