Question

In my AngularJS app I'm getting the follwing error when loading my site:

Uncaught Error: [ng:btstrpd] App Already Bootstrapped with this Element '<html lang="en" ng-app="app" class="ng-scope">'

I have ng-app only set once (in html element in _Layout.cshtml (ASP.NET MVC)) and I don't use angular.bootstrap so the issue mentioned here should not apply. How can debug the issue (using F12, Firebug, Chrome...)?

No correct solution

OTHER TIPS

Use the following process:

  • Download the unminified Angular source
  • Switch the script tag to reference the unminified Angular source or setup a sourcemap from the minified code to the unminified
  • Set a breakpoint within the angular.bootstrap method definition
  • Use the call stack to trace the source(s) on the call(s)

References

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top