aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/js/docs.js
diff options
context:
space:
mode:
authorIgor Minar2013-08-13 16:57:52 -0700
committerIgor Minar2013-08-14 12:02:44 -0700
commit7215afa21c91c33c924a5aba7f3a704983642897 (patch)
tree3d87c7808fa65bff34773300920695cac6c794d0 /docs/src/templates/js/docs.js
parent90979061e837c21e23350dbaaf3060f54ab8fcec (diff)
downloadangular.js-7215afa21c91c33c924a5aba7f3a704983642897.tar.bz2
chore(ngdocs): fixup the docs version switcher
Diffstat (limited to 'docs/src/templates/js/docs.js')
-rw-r--r--docs/src/templates/js/docs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js
index 54d9a571..16042b3a 100644
--- a/docs/src/templates/js/docs.js
+++ b/docs/src/templates/js/docs.js
@@ -4,9 +4,9 @@ var docsApp = {
serviceFactory: {}
};
-docsApp.controller.DocsVersionsCtrl = ['$scope', '$window', 'NG_VERSIONS', function($scope, $window, NG_VERSIONS) {
+docsApp.controller.DocsVersionsCtrl = ['$scope', '$window', 'NG_VERSIONS', 'NG_VERSION', function($scope, $window, NG_VERSIONS, NG_VERSION) {
$scope.versions = expandVersions(NG_VERSIONS);
- $scope.version = ($scope.version || angular.version.full).match(/^([\d\.]+\d+)/)[1]; //match only the number
+ $scope.version = ($scope.version || NG_VERSION).match(/^([\d\.]+\d+\S+)/)[1]; //match only the number
$scope.jumpToDocsVersion = function(value) {
var isLastStable,