mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-17 12:15:56 +08:00
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
This commit is contained in:
4
src/angular-bootstrap.js
vendored
4
src/angular-bootstrap.js
vendored
@@ -99,9 +99,7 @@
|
||||
// empty the cache to prevent mem leaks
|
||||
globalVars = {};
|
||||
|
||||
var config = angularJsConfig(document);
|
||||
|
||||
angularInit(config, document);
|
||||
angularInit({autobind:true}, document);
|
||||
}
|
||||
|
||||
if (window.addEventListener) {
|
||||
|
||||
Reference in New Issue
Block a user