aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular.suffix
diff options
context:
space:
mode:
authorIgor Minar2011-10-25 08:47:02 -0700
committerIgor Minar2011-10-26 12:57:15 -0700
commitd7ba5bc83ba9a8937384ea677331c5156ed6772d (patch)
treeaef0e0eb9873265d6f1cbe90a6f3da360e8367ca /src/angular.suffix
parent950d02b4d4b1d574dfbb9bbdd56b8dc430db0a93 (diff)
downloadangular.js-d7ba5bc83ba9a8937384ea677331c5156ed6772d.tar.bz2
feat(bootstrap): drop angular.js file name restrictions for autobind
The last script element in the dom is always us if the script that contains angular is loaded synchronously. For async loading manual bootstrap needs to be performed. Close #621
Diffstat (limited to 'src/angular.suffix')
-rw-r--r--src/angular.suffix4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/angular.suffix b/src/angular.suffix
index e8bb83b7..d38d3130 100644
--- a/src/angular.suffix
+++ b/src/angular.suffix
@@ -1,6 +1,8 @@
+ var config = angularJsConfig(document);
+
jqLiteWrap(document).ready(function() {
- angularInit(angularJsConfig(document), document);
+ angularInit(config, document);
});
})(window, document);