Skip to content

Commit 00b2403

Browse files
committed
Fix for issue angular#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

+5
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)