From 1f2750136e4a6356819a12a444536120d04865e2 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Mon, 17 Mar 2014 12:43:10 +0000 Subject: 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. --- docs/app/src/docs.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/app/src/docs.js') 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; -- cgit v1.2.3