mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 22:35:14 +08:00
This is hard to test as a unit-test, since it involves the actual loading of angular, but it turns out that it is easy to test using a protractor e2e test. Closes #5863 Closes #5587
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 angular.element().read()
|
|
//but we will rebind on bootstrap again.
|
|
bindJQuery();
|
|
|
|
publishExternalAPI(angular);
|
|
|
|
jqLite(document).ready(function() {
|
|
angularInit(document, bootstrap);
|
|
});
|
|
|
|
})(window, document);
|