aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorChirayu Krishnappa2013-06-19 15:14:45 -0700
committerChirayu Krishnappa2013-06-21 12:28:34 -0700
commit99e85fc9b5b71a1bf3e54126b9c080b3c355c336 (patch)
treeb9cbdf91ef461f52a27932ecbd2ec0255ef88afb /docs/src
parent097947fd3bd280fcf621e36154a9d4f82896ff01 (diff)
downloadangular.js-99e85fc9b5b71a1bf3e54126b9c080b3c355c336.tar.bz2
fix(docs): set ng-app for editing with plunker
Closes #3011
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/templates/js/docs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js
index f1c0e5ec..ddc0405f 100644
--- a/docs/src/templates/js/docs.js
+++ b/docs/src/templates/js/docs.js
@@ -331,7 +331,7 @@ docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
return function(content) {
var allFiles = [].concat(content.js, content.css, content.html);
var indexHtmlContent = '<!doctype html>\n' +
- '<html ng-app>\n' +
+ '<html ng-app="{{module}}">\n' +
' <head>\n' +
' <script src="{{angularJSUrl}}"></script>\n' +
'{{scriptDeps}}\n' +
@@ -347,6 +347,7 @@ docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, angula
}
});
indexProp = {
+ module: content.module,
angularJSUrl: angularUrls['angular.js'],
scriptDeps: scriptDeps,
indexContents: content.html[0].content