diff options
| author | amagee | 2014-03-01 14:53:06 +1100 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-03-02 15:56:13 +0000 |
| commit | 6b18a564dd327f598249760a8200dd1fa657d9e5 (patch) | |
| tree | 47b563856ff0965c9e21d746888244dab3b67541 | |
| parent | 27b7fa3914d5375721d2e575297f0b0c35770c3f (diff) | |
| download | angular.js-6b18a564dd327f598249760a8200dd1fa657d9e5.tar.bz2 | |
docs(error/ng/btstrpd): note that loading angular.js twice can cause the error
Closes #6502
| -rw-r--r-- | docs/content/error/ng/btstrpd.ngdoc | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/docs/content/error/ng/btstrpd.ngdoc b/docs/content/error/ng/btstrpd.ngdoc index 401e2767..7eb66a1e 100644 --- a/docs/content/error/ng/btstrpd.ngdoc +++ b/docs/content/error/ng/btstrpd.ngdoc @@ -3,9 +3,11 @@ @fullName App Already Bootstrapped with this Element @description -Occurs when calling angular.bootstrap on an element that has already been bootstrapped. +Occurs when calling {@link angular.bootstrap} on an element that has already been bootstrapped. + +This usually happens when you accidentally use both `ng-app` and `angular.bootstrap` to bootstrap an +application. -This usually happens when you accidentally use both `ng-app` and `angular.bootstrap` to bootstrap an application. ``` <html> @@ -18,7 +20,9 @@ This usually happens when you accidentally use both `ng-app` and `angular.bootst </html> ``` -Note that for bootrapping purposes, the `<html>` element is the same as `document`, so the following will also throw an error. +Note that for bootrapping purposes, the `<html>` element is the same as `document`, so the following +will also throw an error. + ``` <html> ... @@ -27,3 +31,22 @@ Note that for bootrapping purposes, the `<html>` element is the same as `documen </script> </html> ``` + +You can also get this error if you accidentally load AngularJS itself more than once. + +``` +<html ng-app> + <head> + <script src="angular.js"></script> + + ... + + </head> + <body> + + ... + + <script src="angular.js"></script> + </body> +</html> +```
\ No newline at end of file |
