From 605a7591d4c22ff7daaa8aaedaa0fb0ecb611e63 Mon Sep 17 00:00:00 2001 From: Martin Staffa Date: Fri, 14 Oct 2016 11:20:12 +0200 Subject: [PATCH] fix(docsApp): show correct version number in api index Previously, the index would show the version of Angular that runs on the page, not the version for which the docs are. This meant that in that snapshot docs the stable version was displayed. The `$scope.docsVersion` value was used in the plnkr opening code, but has not been used since https://github.com/angular/angular.js/commit/bdec35cebc89e0d80a04eeffbd71ad999fc7e61a. --- docs/app/src/docs.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/app/src/docs.js b/docs/app/src/docs.js index 3593009b653b..e4cbb8db22b1 100644 --- a/docs/app/src/docs.js +++ b/docs/app/src/docs.js @@ -8,8 +8,6 @@ angular.module('DocsController', []) function($scope, $rootScope, $location, $window, $cookies, NG_PAGES, NG_NAVIGATION, NG_VERSION) { - $scope.docsVersion = NG_VERSION.isSnapshot ? 'snapshot' : NG_VERSION.version; - $scope.navClass = function(navItem) { return { active: navItem.href && this.currentPage && this.currentPage.path, @@ -53,8 +51,8 @@ angular.module('DocsController', []) Initialize ***********************************/ - $scope.versionNumber = angular.version.full; - $scope.version = angular.version.full + ' ' + angular.version.codeName; + $scope.versionNumber = NG_VERSION.full; + $scope.version = NG_VERSION.full + ' ' + NG_VERSION.codeName; $scope.loading = 0;