diff options
Diffstat (limited to 'src/bootstrap/bootstrap-prettify.js')
| -rw-r--r-- | src/bootstrap/bootstrap-prettify.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/bootstrap-prettify.js b/src/bootstrap/bootstrap-prettify.js index e7fc1e9e..a4eb52f2 100644 --- a/src/bootstrap/bootstrap-prettify.js +++ b/src/bootstrap/bootstrap-prettify.js @@ -190,7 +190,12 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', $provide.value('$anchorScroll', angular.noop); $provide.value('$browser', $browser); $provide.provider('$location', function() { - this.$get = function() { return $location; }; + this.$get = ['$rootScope', function($rootScope) { + docsRootScope.$on('$locationChangeSuccess', function(event, oldUrl, newUrl) { + $rootScope.$broadcast('$locationChangeSuccess', oldUrl, newUrl); + }); + return $location; + }]; this.html5Mode = angular.noop; }); $provide.decorator('$defer', ['$rootScope', '$delegate', function($rootScope, $delegate) { |
