diff options
| author | Peter Bacon Darwin | 2014-02-12 22:47:42 +0000 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:41 +0000 | 
| commit | 389d4879da4aa620ee95d789b19ff9be44eb730a (patch) | |
| tree | 93352ddc8738a975904a1774d51b93d585ca1075 /docs/app/src/versions.js | |
| parent | a564160511bf1bbed5a4fe5d2981fae1bb664eca (diff) | |
| download | angular.js-389d4879da4aa620ee95d789b19ff9be44eb730a.tar.bz2 | |
chore(doc-gen): new docs
chore(doc-gen): implement dgeni
Diffstat (limited to 'docs/app/src/versions.js')
| -rw-r--r-- | docs/app/src/versions.js | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/docs/app/src/versions.js b/docs/app/src/versions.js new file mode 100644 index 00000000..701f41d3 --- /dev/null +++ b/docs/app/src/versions.js @@ -0,0 +1,15 @@ +angular.module('versions', []) + +.controller('DocsVersionsCtrl', ['$scope', '$location', '$window', 'NG_VERSIONS', function($scope, $location, $window, NG_VERSIONS) { +  $scope.docs_versions = NG_VERSIONS; +  $scope.docs_version  = NG_VERSIONS[0]; + +  $scope.jumpToDocsVersion = function(version) { +    var currentPagePath = $location.path(); + +    // TODO: We need to do some munging of the path for different versions of the API... +     + +    $window.location = version.docsUrl + currentPagePath; +  }; +}]);
\ No newline at end of file | 
