diff options
Diffstat (limited to 'docs/src/templates/doc_widgets.js')
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index 894f1f24..5d4f8905 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -85,7 +85,12 @@ angular.module('ngdocs.directives', [], function($compileProvider) { var modules = [ function($provide) { $provide.value('$browser', $browser); - $provide.value('$location', $location); + $provide.service('$location', function() { + this.$get = function() { + return $location; + }; + this.hashPrefix = this.html5Mode = angular.noop; + }); $provide.decorator('$defer', function($rootScope, $delegate) { return angular.extend(function(fn, delay) { if (delay && delay > 500) { |
