fix(docs): set ng-app for editing with plunker

Closes #3011
This commit is contained in:
Chirayu Krishnappa 2013-06-19 15:14:45 -07:00
parent 097947fd3b
commit 99e85fc9b5

View file

@ -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