mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
12 lines
472 B
Plaintext
12 lines
472 B
Plaintext
/**
|
|
* This is a special facade used to bootstrap JS automatically.
|
|
* (In contrast to door wheere the user needs to explicitly call into angular.)
|
|
* This file is appened to AngularJS and needs to be written in ES5.
|
|
*/
|
|
(function(window, document) {
|
|
document.addEventListener('DOMContentLoaded', bootstrap, false);
|
|
function bootstrap() {
|
|
// TODO(misko): load application factory from the module system.
|
|
applicationFactory().run();
|
|
}
|
|
})(window, document); |