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; diff --git a/docs/config/templates/runnableExample.template.html b/docs/config/templates/runnableExample.template.html new file mode 100644 index 00000000..4fe2a38f --- /dev/null +++ b/docs/config/templates/runnableExample.template.html @@ -0,0 +1,27 @@ +{# Be aware that we need these extra new lines here or marked will not realise that the
+ is HTML and wrap each line in a

- thus breaking the HTML #} + +

+ +   + Edit in Plunker +
+ + {% for fileName, file in doc.example.files %} +
+ {% code -%} + {$ file.fileContents $} + {%- endcode %} +
+ {% endfor %} + + +
+
+ +{# Be aware that we need these extra new lines here or marked will not realise that the
+ above is HTML and wrap each line in a

- thus breaking the HTML #} \ No newline at end of file