You do not need to disable Angular batarang; just follow these steps:
- Open the developer tools and go to the hint.js file (the one that causes the stack to overflow)
- Go to line 453 add add breakpoint
- reload the application and when it hits the breakpoint, just comment it (setupModuleLoader (window)) and click continue
- It throws an exception anyway, (Uncaught ReferenceError: Angular not defined), but you can run batarang
I know this is not the best solution, but this is the fastest thing I could find without delving too deep into the problem.
Update
Checking what happens, I noticed that the problem occurs when we define several modules, and we add the same dependencies for all of them.
eg:
angular.module("app", ["moduleB", "moduleC"]); angular.module("moduleB", ["moduleC"]);
When I define module B without passing the same fingerprints to its parent module, then the stack does not overflow.
angular.module("moduleB", []);
ppoliani Dec 10 '14 at 10:54 2014-12-10 10:54
source share