diff options
Diffstat (limited to 'docs/index.html')
| -rw-r--r-- | docs/index.html | 16 |
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> |
