From 6b18a564dd327f598249760a8200dd1fa657d9e5 Mon Sep 17 00:00:00 2001 From: amagee Date: Sat, 1 Mar 2014 14:53:06 +1100 Subject: docs(error/ng/btstrpd): note that loading angular.js twice can cause the error Closes #6502 --- docs/content/error/ng/btstrpd.ngdoc | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'docs/content') 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. ``` @@ -18,7 +20,9 @@ This usually happens when you accidentally use both `ng-app` and `angular.bootst ``` -Note that for bootrapping purposes, the `` element is the same as `document`, so the following will also throw an error. +Note that for bootrapping purposes, the `` element is the same as `document`, so the following +will also throw an error. + ``` ... @@ -27,3 +31,22 @@ Note that for bootrapping purposes, the `` element is the same as `documen ``` + +You can also get this error if you accidentally load AngularJS itself more than once. + +``` + + + + + ... + + + + + ... + + + + +``` \ No newline at end of file -- cgit v1.2.3