aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular.suffix
diff options
context:
space:
mode:
Diffstat (limited to 'src/angular.suffix')
-rw-r--r--src/angular.suffix6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/angular.suffix b/src/angular.suffix
index c86200bb..9429d4fc 100644
--- a/src/angular.suffix
+++ b/src/angular.suffix
@@ -1,3 +1,9 @@
+ 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();