aboutsummaryrefslogtreecommitdiffstats
path: root/docs/components
diff options
context:
space:
mode:
authorTobias Bosch2013-11-05 22:16:11 -0800
committerTobias Bosch2013-11-06 17:11:44 -0800
commitfc060dfc08f048511fe78e9df04ce4616171da34 (patch)
tree71b912fb07c70b3e5c315577057b13c85b2032e6 /docs/components
parent947a44d1ee6b253a5f31bb28616e0fa0303bd4aa (diff)
downloadangular.js-fc060dfc08f048511fe78e9df04ce4616171da34.tar.bz2
docs(guide/overview): Refactor overview and mvc docs
Before, there we multiple overview docs: - guide/overview - guide/introduction - guide/dev_guide.mvc - guide/dev_guide.mvc.understanding_model - guide/dev_guide.mvc.understanding_view - guide/concepts Now we have: - guide/introduction: High level description of Angular with the key benefits but without code or any concrete concepts - guide/concepts: explains all important concepts with a simple example and contains deep links to the other parts of the guide. All the old information was moved into existing documents or deleted when they were duplicates.
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/angular-bootstrap/bootstrap-prettify.js30
1 files changed, 16 insertions, 14 deletions
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js
index c0496c2c..101bc801 100644
--- a/docs/components/angular-bootstrap/bootstrap-prettify.js
+++ b/docs/components/angular-bootstrap/bootstrap-prettify.js
@@ -169,21 +169,23 @@ directive.ngSetHtml = ['getEmbeddedTemplate', function(getEmbeddedTemplate) {
directive.ngEvalJavascript = ['getEmbeddedTemplate', function(getEmbeddedTemplate) {
return {
compile: function (element, attr) {
- var script = getEmbeddedTemplate(attr.ngEvalJavascript);
-
- try {
- if (window.execScript) { // IE
- window.execScript(script || '""'); // IE complains when evaling empty string
- } else {
- window.eval(script);
- }
- } catch (e) {
- if (window.console) {
- window.console.log(script, '\n', e);
- } else {
- window.alert(e);
+ var fileNames = attr.ngEvalJavascript.split(' ');
+ angular.forEach(fileNames, function(fileName) {
+ var script = getEmbeddedTemplate(fileName);
+ try {
+ if (window.execScript) { // IE
+ window.execScript(script || '""'); // IE complains when evaling empty string
+ } else {
+ window.eval(script + '//@ sourceURL=' + fileName);
+ }
+ } catch (e) {
+ if (window.console) {
+ window.console.log(script, '\n', e);
+ } else {
+ window.alert(e);
+ }
}
- }
+ });
}
};
}];