aboutsummaryrefslogtreecommitdiffstats
path: root/docs/app/src/docs.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/app/src/docs.js')
-rw-r--r--docs/app/src/docs.js27
1 files changed, 3 insertions, 24 deletions
diff --git a/docs/app/src/docs.js b/docs/app/src/docs.js
index cb4f029f..5163e982 100644
--- a/docs/app/src/docs.js
+++ b/docs/app/src/docs.js
@@ -1,26 +1,4 @@
-angular.module('docsApp', [
- 'ngRoute',
- 'ngCookies',
- 'ngSanitize',
- 'ngAnimate',
- 'versionsData',
- 'pagesData',
- 'directives',
- 'errors',
- 'examples',
- 'search',
- 'tutorials',
- 'versions',
- 'bootstrap',
- 'bootstrapPrettify',
- 'ui.bootstrap.dropdown'
-])
-
-
-.config(function($locationProvider) {
- $locationProvider.html5Mode(true).hashPrefix('!');
-})
-
+angular.module('DocsController', [])
.controller('DocsController', function($scope, $rootScope, $location, $window, $cookies, NG_PAGES, NG_NAVIGATION, NG_VERSION) {
@@ -52,7 +30,8 @@ angular.module('docsApp', [
};
$scope.afterPartialLoaded = function() {
- $window._gaq.push(['_trackPageview', $location.path()]);
+ var pagePath = $scope.currentPage ? $scope.currentPage.path : $location.path();
+ $window._gaq.push(['_trackPageview', pagePath]);
};
/** stores a cookie that is used by apache to decide which manifest ot send */