aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/templates/docs.js9
-rw-r--r--docs/src/templates/index.html4
2 files changed, 7 insertions, 6 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js
index 2693da64..0c8d787a 100644
--- a/docs/src/templates/docs.js
+++ b/docs/src/templates/docs.js
@@ -1,11 +1,12 @@
-DocsController.$inject = ['$location', '$window', '$cookies'];
-function DocsController($location, $window, $cookies) {
+DocsController.$inject = ['$location', '$window', '$cookies', '$filter'];
+function DocsController($location, $window, $cookies, $filter) {
window.$root = this.$root;
var scope = this,
OFFLINE_COOKIE_NAME = 'ng-offline',
DOCS_PATH = /^\/(api)|(guide)|(cookbook)|(misc)|(tutorial)/,
- INDEX_PATH = /^(\/|\/index[^\.]*.html)$/;
+ INDEX_PATH = /^(\/|\/index[^\.]*.html)$/,
+ filter = $filter('filter');
scope.$location = $location;
scope.versionNumber = angular.version.full;
@@ -25,7 +26,7 @@ function DocsController($location, $window, $cookies) {
var parts = path.split('/');
scope.sectionId = parts[1];
scope.partialId = parts[2] || 'index';
- scope.pages = angular.Array.filter(NG_PAGES, {section: scope.sectionId});
+ scope.pages = filter(NG_PAGES, {section: scope.sectionId});
var i = scope.pages.length;
while (i--) {
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html
index 49036309..6c8c5011 100644
--- a/docs/src/templates/index.html
+++ b/docs/src/templates/index.html
@@ -27,7 +27,7 @@
type: 'text/css'});
addTag('script', {src: 'syntaxhighlighter/syntaxhighlighter-combined.js'}, sync);
if (jQuery) addTag('script', {src: 'jquery.min.js'});
- addTag('script', {src: angularPath, 'ng:autobind':''}, sync);
+ addTag('script', {src: angularPath, 'ng:autobind':'', 'ng:modules':'ngdocs'}, sync);
addTag('script', {src: 'docs-combined.js'}, sync);
addTag('script', {src: 'docs-keywords.js'}, sync);
@@ -103,7 +103,7 @@
tabindex="1" accesskey="s">
<ul id="content-list" ng:class="sectionId" ng:cloak>
- <li ng:repeat="page in pages.$filter(search)" ng:class="getClass(page)">
+ <li ng:repeat="page in pages | filter:search" ng:class="getClass(page)">
<a href="{{getUrl(page)}}" ng:class="selectedPartial(page)"
ng:bind="page.shortName"
tabindex="2"></a>