aboutsummaryrefslogtreecommitdiffstats
path: root/docs/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/app/src')
-rw-r--r--docs/app/src/app.js23
-rw-r--r--docs/app/src/docs.js27
2 files changed, 26 insertions, 24 deletions
diff --git a/docs/app/src/app.js b/docs/app/src/app.js
new file mode 100644
index 00000000..0ac5f258
--- /dev/null
+++ b/docs/app/src/app.js
@@ -0,0 +1,23 @@
+angular.module('docsApp', [
+ 'ngRoute',
+ 'ngCookies',
+ 'ngSanitize',
+ 'ngAnimate',
+ 'DocsController',
+ 'versionsData',
+ 'pagesData',
+ 'directives',
+ 'errors',
+ 'examples',
+ 'search',
+ 'tutorials',
+ 'versions',
+ 'bootstrap',
+ 'bootstrapPrettify',
+ 'ui.bootstrap.dropdown'
+])
+
+
+.config(function($locationProvider) {
+ $locationProvider.html5Mode(true).hashPrefix('!');
+}); \ No newline at end of file
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 */