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

Commit 6b18a56

Browse files
amageepetebacondarwin
authored andcommitted
docs(error/ng/btstrpd): note that loading angular.js twice can cause the error
Closes #6502
1 parent 27b7fa3 commit 6b18a56

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

docs/content/error/ng/btstrpd.ngdoc

+26-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
@fullName App Already Bootstrapped with this Element
44
@description
55

6-
Occurs when calling angular.bootstrap on an element that has already been bootstrapped.
6+
Occurs when calling {@link angular.bootstrap} on an element that has already been bootstrapped.
7+
8+
This usually happens when you accidentally use both `ng-app` and `angular.bootstrap` to bootstrap an
9+
application.
710

8-
This usually happens when you accidentally use both `ng-app` and `angular.bootstrap` to bootstrap an application.
911

1012
```
1113
<html>
@@ -18,7 +20,9 @@ This usually happens when you accidentally use both `ng-app` and `angular.bootst
1820
</html>
1921
```
2022

21-
Note that for bootrapping purposes, the `<html>` element is the same as `document`, so the following will also throw an error.
23+
Note that for bootrapping purposes, the `<html>` element is the same as `document`, so the following
24+
will also throw an error.
25+
2226
```
2327
<html>
2428
...
@@ -27,3 +31,22 @@ Note that for bootrapping purposes, the `<html>` element is the same as `documen
2731
</script>
2832
</html>
2933
```
34+
35+
You can also get this error if you accidentally load AngularJS itself more than once.
36+
37+
```
38+
<html ng-app>
39+
<head>
40+
<script src="angular.js"></script>
41+
42+
...
43+
44+
</head>
45+
<body>
46+
47+
...
48+
49+
<script src="angular.js"></script>
50+
</body>
51+
</html>
52+
```

0 commit comments

Comments
 (0)