aboutsummaryrefslogtreecommitdiffstats
path: root/docs/app/src/docs.js
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-03-17 12:43:10 +0000
committerPeter Bacon Darwin2014-03-17 12:43:10 +0000
commitd09056d2872c81b86f49cc8a8a666e776eeb2254 (patch)
treec0a1cfb1f3b087202e05a89b71a5fb80ff7854d0 /docs/app/src/docs.js
parent849e4472e178474b5b2be3d3a12d059a7c9b66dc (diff)
downloadangular.js-d09056d2872c81b86f49cc8a8a666e776eeb2254.tar.bz2
docs(runnableExamples): add "edit in Plunker" button
The "runnableExample.template.html" template overrides the one in the dgeni-packages "examples" package with a similar template that also has a link to a special Plunker URL that can pull in the example from our code.angularjs.org website.
Diffstat (limited to 'docs/app/src/docs.js')
-rw-r--r--docs/app/src/docs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/app/src/docs.js b/docs/app/src/docs.js
index 74d78136..5c6a76d4 100644
--- a/docs/app/src/docs.js
+++ b/docs/app/src/docs.js
@@ -2,6 +2,8 @@ angular.module('DocsController', [])
.controller('DocsController', function($scope, $rootScope, $location, $window, $cookies, NG_PAGES, NG_NAVIGATION, NG_VERSION) {
+ $scope.docsVersion = NG_VERSION.isSnapshot ? 'snapshot' : NG_VERSION.version;
+
$scope.fold = function(url) {
if(url) {
$scope.docs_fold = '/notes/' + url;