aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/templates/docs.js')
-rw-r--r--docs/src/templates/docs.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js
index 6b76a953..38a75236 100644
--- a/docs/src/templates/docs.js
+++ b/docs/src/templates/docs.js
@@ -152,10 +152,7 @@ function TutorialInstructionsCtrl($cookieStore) {
};
}
-window.angular = window.angular || {};
-angular.module = angular.module || {};
-
-angular.module.ngdocs = function($locationProvider, $filterProvider) {
+angular.module('ngdocs', [], function($locationProvider, $filterProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
$filterProvider.register('title', function(){
@@ -165,4 +162,4 @@ angular.module.ngdocs = function($locationProvider, $filterProvider) {
});
}
});
-};
+});