From 389d4879da4aa620ee95d789b19ff9be44eb730a Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 12 Feb 2014 22:47:42 +0000 Subject: chore(doc-gen): new docs chore(doc-gen): implement dgeni --- docs/app/src/versions.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/app/src/versions.js (limited to 'docs/app/src/versions.js') 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 -- cgit v1.2.3