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. Closes #15265
This commit is contained in:
@@ -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,
|
||||
@@ -60,8 +58,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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user