Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 00b2403

Browse files
committed
Fix for issue #5587 where app is bootstrapped more than once
1 parent fced1c0 commit 00b2403

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/angular.suffix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//try to bind to jquery now so that one can write angular.element().read()
22
//but we will rebind on bootstrap again.
3+
if (window.angular.bootstrap) {
4+
//already bootstrapped, so we can return here...
5+
return;
6+
}
7+
38
bindJQuery();
49

510
publishExternalAPI(angular);

0 commit comments

Comments
 (0)