diff options
| -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 |
