Show / Hide Table of Contents
-
Error Reference
- Error Reference
- $animate
- nongcls
- notcsel
- $cacheFactory
- iid
- $compile
- baddir
- badrestrict
- ctreq
- ctxoverride
- infchng
- iscp
- missingattr
- multidir
- multilink
- noctrl
- nodomevents
- nonassign
- noslot
- reqslot
- selmulti
- srcset
- tplrt
- uterdir
- $controller
- ctrlfmt
- ctrlreg
- noscp
- $http
- baddata
- badjsonp
- badreq
- $injector
- cdep
- itkn
- modulerr
- nomod
- pget
- strictdi
- undef
- unpr
- $interpolate
- badexpr
- dupvalue
- interr
- logicbug
- nochgmustache
- noconcat
- reqarg
- reqcomma
- reqendbrace
- reqendinterp
- reqopenbrace
- reqother
- unknarg
- unsafe
- untermstr
- wantstring
- $interval
- badprom
- $location
- badpath
- ipthprfx
- isrcharg
- nobase
- nostate
- $parse
- esc
- lexerr
- lval
- syntax
- ueoe
- $q
- norslvr
- qcycle
- $resource
- badargs
- badcfg
- badmember
- badname
- $rootScope
- infdig
- inprog
- $route
- norout
- $sanitize
- elclob
- noinert
- uinput
- $sce
- icontext
- iequirks
- imatcher
- insecurl
- itype
- iwcard
- unsafe
- $templateRequest
- tpload
- $timeout
- badprom
- filter
- notarray
- jqLite
- nosel
- offargs
- onargs
- linky
- notstring
- ng
- aobj
- areq
- badname
- btstrpd
- cpi
- cpta
- cpws
- test
- ngModel
- constexpr
- datefmt
- nonassign
- nopromise
- numfmt
- ngOptions
- iexp
- ngPattern
- noregexp
- ngRef
- noctrl
- nonassign
- ngRepeat
- badident
- dupes
- iexp
- iidexp
- ngTransclude
- orphan
- orderBy
- notarray
Loading …
There was an error loading this resource. Please try again later.
Improve this Doc
Error: ng:btstrpd
Error: ng:btstrpd
App Already Bootstrapped with this Element
App already bootstrapped with this element '<body ng-app="" class="ng-scope">'
Description
Occurs when calling 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.
<html>
...
<body ng-app="myApp">
<script>
angular.bootstrap(document.body, ['myApp']);
</script>
</body>
</html>
Note that for bootstrapping purposes, the <html>
element is the same as document
, so the following
will also throw an error.
<html>
...
<script>
angular.bootstrap(document, ['myApp']);
</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>