mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 20:40:03 +08:00
18 lines
452 B
Plaintext
18 lines
452 B
Plaintext
if (window.angular.bootstrap) {
|
|
//AngularJS is already loaded, so we can return here...
|
|
console.log('WARNING: Tried to load angular more than once.');
|
|
return;
|
|
}
|
|
|
|
//try to bind to jquery now so that one can write jqLite(document).ready()
|
|
//but we will rebind on bootstrap again.
|
|
bindJQuery();
|
|
|
|
publishExternalAPI(angular);
|
|
|
|
jqLite(document).ready(function() {
|
|
angularInit(document, bootstrap);
|
|
});
|
|
|
|
})(window, document);
|